Skip to content
Snippets Groups Projects
Commit 69d07641 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard
Browse files

qmgr: Use the full path for HTTP downloads.

parent 439e9c6a
Branches
Tags
No related merge requests found
......@@ -477,7 +477,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
{
static const WCHAR prefix[] = {'B','I','T', 0};
WCHAR tmpDir[MAX_PATH], tmpName[MAX_PATH];
WCHAR host[MAX_PATH], path[MAX_PATH];
WCHAR host[MAX_PATH];
URL_COMPONENTSW uc;
BOOL ret;
......@@ -519,10 +519,8 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
uc.lpszHostName = host;
uc.dwHostNameLength = sizeof(host)/sizeof(host[0]);
uc.nPort = 0;
uc.lpszUrlPath = path;
uc.dwUrlPathLength = sizeof(path)/sizeof(path[0]);
uc.lpszExtraInfo = NULL;
uc.dwExtraInfoLength = 0;
uc.lpszUrlPath = NULL;
uc.dwUrlPathLength = ~0u;
ret = WinHttpCrackUrl(file->info.RemoteName, 0, 0, &uc);
if (!ret)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment