diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c index 605fa055cb1..736fee0911d 100644 --- a/dlls/mshtml/install.c +++ b/dlls/mshtml/install.c @@ -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;