From bd7f43d7e8fca5cab20120b3819bfd5491436b72 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 17 Aug 2015 13:56:50 +0200 Subject: [PATCH] qmgr: Do not omit mandatory argument to WriteFile. --- dlls/qmgr/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/qmgr/file.c b/dlls/qmgr/file.c index 4dccbfd945f..70d3a508091 100644 --- a/dlls/qmgr/file.c +++ b/dlls/qmgr/file.c @@ -373,6 +373,7 @@ static BOOL transfer_file_http(BackgroundCopyFileImpl *file, URL_COMPONENTSW *uc DWORD flags = (uc->nScheme == INTERNET_SCHEME_HTTPS) ? WINHTTP_FLAG_SECURE : 0; char buf[4096]; BOOL ret = FALSE; + DWORD written; transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_CONNECTING); @@ -405,7 +406,7 @@ static BOOL transfer_file_http(BackgroundCopyFileImpl *file, URL_COMPONENTSW *uc break; } if (!file->read_size) break; - if (!(ret = WriteFile(handle, buf, file->read_size, NULL, NULL))) break; + if (!(ret = WriteFile(handle, buf, file->read_size, &written, NULL))) break; EnterCriticalSection(&job->cs); file->fileProgress.BytesTransferred += file->read_size;