Commit cc535b7c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

There is no point in specifying both MEM_RESERVE and MEM_COMMIT for

VirtualAlloc.
parent ab2266de
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment