mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
fixed differences in signedness warnings
svn path=/trunk/; revision=17970
This commit is contained in:
parent
6f8faaa0d5
commit
2e7c6d22ad
1 changed files with 2 additions and 2 deletions
|
@ -27,14 +27,14 @@ extern FAST_MUTEX UserLock;
|
|||
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); \
|
||||
|
|
Loading…
Reference in a new issue