mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:58:20 +00:00
qmgr: Do not omit mandatory argument to WriteFile.
This commit is contained in:
parent
1bea5f44b0
commit
bd7f43d7e8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue