Commit 7e15e5d5 authored by David Hammerton's avatar David Hammerton Committed by Alexandre Julliard

In initial dibsection creation, the dibsection should always be in

appmod because the app memory is initialized to zero if no offset/section is specified, while the DIBitmap is not.
parent a38f2d9f
......@@ -5793,16 +5793,8 @@ HBITMAP X11DRV_DIB_CreateDIBSection(
InitializeCriticalSection(&(dib->lock));
if (VIRTUAL_SetFaultHandler(bm.bmBits, X11DRV_DIB_FaultHandler, (LPVOID)res))
{
if (section || offset)
{
X11DRV_DIB_DoProtectDIBSection( bmp, PAGE_READWRITE );
if (dib) dib->status = DIB_Status_AppMod;
}
else
{
X11DRV_DIB_DoProtectDIBSection( bmp, PAGE_READONLY );
if (dib) dib->status = DIB_Status_InSync;
}
X11DRV_DIB_DoProtectDIBSection( bmp, PAGE_READWRITE );
if (dib) dib->status = DIB_Status_AppMod;
}
}
......
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