There is no point in specifying both MEM_RESERVE and MEM_COMMIT for VirtualAlloc
Dmitry Timoshkov
dmitry at baikal.ru
Wed Feb 11 08:53:07 CST 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
There is no point in specifying both MEM_RESERVE and MEM_COMMIT
for VirtualAlloc.
--- cvs/hq/wine/dlls/ddraw/dsurface/dib.c Wed Jul 9 16:11:51 2003
+++ wine/dlls/ddraw/dsurface/dib.c Wed Feb 11 21:23:33 2004
@@ -255,7 +255,7 @@ HRESULT DIB_DirectDrawSurface_Construct(
= VirtualAlloc(NULL, This->surface_desc.u1.lPitch
* This->surface_desc.dwHeight + 4, /* The + 4 here is for dumb games reading after the end of the surface
when reading the last byte / half using word access */
- MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
+ MEM_RESERVE, PAGE_READWRITE);
if (This->surface_desc.lpSurface == NULL)
{
More information about the wine-patches
mailing list