Patch for Bug 4159
Howard Selover III
selover at speakeasy.net
Mon Dec 26 08:26:58 CST 2005
ChangeLog:
Howard Selover III <selover at speakeasy.net>
Added back the end of read detection to eliminate a spin condition.
Index: dlls/ole32/storage32.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/storage32.c,v
retrieving revision 1.97
diff -u -p -r1.97 storage32.c
--- dlls/ole32/storage32.c 22 Dec 2005 17:12:52 -0000 1.97
+++ dlls/ole32/storage32.c 26 Dec 2005 01:47:44 -0000
@@ -5188,6 +5188,9 @@ HRESULT SmallBlockChainStream_ReadAt(
offsetInBlock = 0; /* There is no offset on the next block */
}
+ if (size == 0)
+ rc = E_FAIL;
+
return rc;
}
More information about the wine-patches
mailing list