winex11.drv: Add DebugInfo to critical sections.

This commit is contained in:
Jan Zerebecki 2007-03-10 22:11:01 +01:00 committed by Alexandre Julliard
parent 4c4821e305
commit 2db1e421f1
1 changed files with 2 additions and 0 deletions

View File

@ -4608,6 +4608,7 @@ HBITMAP X11DRV_CreateDIBSection( X11DRV_PDEVICE *physDev, HBITMAP hbitmap,
/* install fault handler */
InitializeCriticalSection( &physBitmap->lock );
physBitmap->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": X_PHYSBITMAP.lock");
physBitmap->base = dib.dsBm.bmBits;
physBitmap->size = dib.dsBmih.biSizeImage;
@ -4663,6 +4664,7 @@ void X11DRV_DIB_DeleteDIBSection(X_PHYSBITMAP *physBitmap, DIBSECTION *dib)
}
HeapFree(GetProcessHeap(), 0, physBitmap->colorMap);
physBitmap->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&physBitmap->lock);
}