--- trunk/reactos/subsys/win32k/include/ntuser.h 2005-09-21 17:28:14 UTC (rev 17969)
+++ trunk/reactos/subsys/win32k/include/ntuser.h 2005-09-21 17:37:08 UTC (rev 17970)
@@ -27,14 +27,14 @@
ASSERT(FALSE); \
} \
UUserEnterExclusive(); \
- ASSERT(InterlockedIncrement(&_locked) == 1 /*> 0*/); \
+ ASSERT(InterlockedIncrement((PLONG)(&_locked)) == 1 /*> 0*/); \
_file = __FILE__; _line = __LINE__; \
/* DPRINT("got lock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
}
#define UserLeave() \
{ \
- ASSERT(InterlockedDecrement(&_locked) == 0/*>= 0*/); \
+ ASSERT(InterlockedDecrement((PLONG)(&_locked)) == 0/*>= 0*/); \
/*DPRINT("unlock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
if (UserLock.Owner != KeGetCurrentThread()) { \
DPRINT1("file %s, line %i\n",_file, _line); \