mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
qmgr: Use the full path for HTTP downloads.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
439e9c6a31
commit
69d0764196
1 changed files with 3 additions and 5 deletions
|
@ -477,7 +477,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
|
||||||
{
|
{
|
||||||
static const WCHAR prefix[] = {'B','I','T', 0};
|
static const WCHAR prefix[] = {'B','I','T', 0};
|
||||||
WCHAR tmpDir[MAX_PATH], tmpName[MAX_PATH];
|
WCHAR tmpDir[MAX_PATH], tmpName[MAX_PATH];
|
||||||
WCHAR host[MAX_PATH], path[MAX_PATH];
|
WCHAR host[MAX_PATH];
|
||||||
URL_COMPONENTSW uc;
|
URL_COMPONENTSW uc;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
|
@ -519,10 +519,8 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
|
||||||
uc.lpszHostName = host;
|
uc.lpszHostName = host;
|
||||||
uc.dwHostNameLength = sizeof(host)/sizeof(host[0]);
|
uc.dwHostNameLength = sizeof(host)/sizeof(host[0]);
|
||||||
uc.nPort = 0;
|
uc.nPort = 0;
|
||||||
uc.lpszUrlPath = path;
|
uc.lpszUrlPath = NULL;
|
||||||
uc.dwUrlPathLength = sizeof(path)/sizeof(path[0]);
|
uc.dwUrlPathLength = ~0u;
|
||||||
uc.lpszExtraInfo = NULL;
|
|
||||||
uc.dwExtraInfoLength = 0;
|
|
||||||
ret = WinHttpCrackUrl(file->info.RemoteName, 0, 0, &uc);
|
ret = WinHttpCrackUrl(file->info.RemoteName, 0, 0, &uc);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue