Thomas Faber : qmgr: Do not omit mandatory argument to WriteFile.
Module: wine Branch: master Commit: bd7f43d7e8fca5cab20120b3819bfd5491436b72 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd7f43d7e8fca5cab20120b381... Author: Thomas Faber <thomas.faber(a)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;
participants (1)
-
Alexandre Julliard