- God is a second-hand imitation of Gé. Fix for bug 1213.
authorAlex Ionescu <aionescu@gmail.com>
Thu, 5 Jan 2006 21:49:49 +0000 (21:49 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Thu, 5 Jan 2006 21:49:49 +0000 (21:49 +0000)
svn path=/trunk/; revision=20591

reactos/subsys/win32k/include/bitmaps.h

index 6537abb..d799330 100644 (file)
@@ -34,8 +34,8 @@ typedef struct _BITMAPOBJ
 BOOL INTERNAL_CALL BITMAP_Cleanup(PVOID ObjectBody);\r
 \r
 BOOL INTERNAL_CALL BITMAPOBJ_InitBitsLock(BITMAPOBJ *pBMObj);\r
-#define BITMAPOBJ_LockBitmapBits(pBMObj) ExAcquireFastMutex((pBMObj)->BitsLock)\r
-#define BITMAPOBJ_UnlockBitmapBits(pBMObj) ExReleaseFastMutex((pBMObj)->BitsLock)\r
+#define BITMAPOBJ_LockBitmapBits(pBMObj) ExEnterCriticalRegionAndAcquireFastMutexUnsafe((pBMObj)->BitsLock)\r
+#define BITMAPOBJ_UnlockBitmapBits(pBMObj) ExReleaseFastMutexUnsafeAndLeaveCriticalRegion((pBMObj)->BitsLock)\r
 void INTERNAL_CALL BITMAPOBJ_CleanupBitsLock(BITMAPOBJ *pBMObj);\r
 \r
 INT     FASTCALL BITMAPOBJ_GetWidthBytes (INT bmWidth, INT bpp);\r