ASSERT(FALSE); \\r
} \\r
UUserEnterExclusive(); \\r
- ASSERT(InterlockedIncrement(&_locked) == 1 /*> 0*/); \\r
+ ASSERT(InterlockedIncrement((PLONG)(&_locked)) == 1 /*> 0*/); \\r
_file = __FILE__; _line = __LINE__; \\r
/* DPRINT("got lock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \\r
}\r
\r
#define UserLeave() \\r
{ \\r
- ASSERT(InterlockedDecrement(&_locked) == 0/*>= 0*/); \\r
+ ASSERT(InterlockedDecrement((PLONG)(&_locked)) == 0/*>= 0*/); \\r
/*DPRINT("unlock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \\r
if (UserLock.Owner != KeGetCurrentThread()) { \\r
DPRINT1("file %s, line %i\n",_file, _line); \\r