MSI: Set the out buffer count to zero on read error

Mike McCormack mike at codeweavers.com
Sun Dec 5 20:16:49 CST 2004


ChangeLog:
<ulrichc at codeweavers.com>
* Set the out buffer count to zero on read error
-------------- next part --------------
Index: dlls/msi/record.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/record.c,v
retrieving revision 1.15
diff -u -r1.15 record.c
--- dlls/msi/record.c	24 Aug 2004 20:56:08 -0000	1.15
+++ dlls/msi/record.c	6 Dec 2004 03:08:48 -0000
@@ -534,7 +534,10 @@
     count = 0;
     r = IStream_Read( stm, buf, *sz, &count );
     if( FAILED( r ) )
+    {
+        *sz = 0;
         return ERROR_FUNCTION_FAILED;
+    }
 
     *sz = count;
 


More information about the wine-patches mailing list