mshtml: Pass bytes written pointer to WriteFile.

This commit is contained in:
Juan Lang 2009-02-04 09:20:22 -08:00 committed by Alexandre Julliard
parent 69cf059e8b
commit 55b504cc88
1 changed files with 3 additions and 1 deletions

View File

@ -383,10 +383,12 @@ static HRESULT WINAPI InstallCallback_OnDataAvailable(IBindStatusCallback *iface
HRESULT hres;
do {
DWORD written;
size = 0;
hres = IStream_Read(str, buf, sizeof(buf), &size);
if(size)
WriteFile(tmp_file, buf, size, NULL, NULL);
WriteFile(tmp_file, buf, size, &written, NULL);
}while(hres == S_OK);
return S_OK;