Juan Lang : mshtml: Pass bytes written pointer to WriteFile.

Alexandre Julliard julliard at winehq.org
Thu Feb 5 09:20:56 CST 2009


Module: wine
Branch: master
Commit: 55b504cc880b57daecc9c061c50bfa0784b98edc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=55b504cc880b57daecc9c061c50bfa0784b98edc

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Feb  4 09:20:22 2009 -0800

mshtml: Pass bytes written pointer to WriteFile.

---

 dlls/mshtml/install.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c
index 605fa05..736fee0 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;




More information about the wine-cvs mailing list