Thomas Faber : qmgr: Do not omit mandatory argument to WriteFile.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 17 09:01:14 CDT 2015
Module: wine
Branch: master
Commit: bd7f43d7e8fca5cab20120b3819bfd5491436b72
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd7f43d7e8fca5cab20120b3819bfd5491436b72
Author: Thomas Faber <thomas.faber at reactos.org>
Date: Mon Aug 17 13:56:50 2015 +0200
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 4dccbfd..70d3a50 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;
More information about the wine-cvs
mailing list