Commit 2db1e421 authored by Jan Zerebecki's avatar Jan Zerebecki Committed by Alexandre Julliard

winex11.drv: Add DebugInfo to critical sections.

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