Jan Zerebecki : winex11.drv: Add DebugInfo to critical sections.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 12 08:28:48 CDT 2007


Module: wine
Branch: master
Commit: 2db1e421f1d4a0cb77d3c907d5edcacf88c704a2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2db1e421f1d4a0cb77d3c907d5edcacf88c704a2

Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date:   Sat Mar 10 22:11:01 2007 +0100

winex11.drv: Add DebugInfo to critical sections.

---

 dlls/winex11.drv/dib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index cec2058..82cacab 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -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);
 }
 




More information about the wine-cvs mailing list