There is no point in specifying both MEM_RESERVE and MEM_COMMIT for

VirtualAlloc.
This commit is contained in:
Dmitry Timoshkov 2004-02-11 23:57:36 +00:00 committed by Alexandre Julliard
parent ab2266de9a
commit cc535b7cce
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ HRESULT DIB_DirectDrawSurface_Construct(IDirectDrawSurfaceImpl *This,
= 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_COMMIT, PAGE_READWRITE);
if (This->surface_desc.lpSurface == NULL)
{