mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +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); \
|
ASSERT(FALSE); \
|
||||||
} \
|
} \
|
||||||
UUserEnterExclusive(); \
|
UUserEnterExclusive(); \
|
||||||
ASSERT(InterlockedIncrement(&_locked) == 1 /*> 0*/); \
|
ASSERT(InterlockedIncrement((PLONG)(&_locked)) == 1 /*> 0*/); \
|
||||||
_file = __FILE__; _line = __LINE__; \
|
_file = __FILE__; _line = __LINE__; \
|
||||||
/* DPRINT("got lock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
|
/* DPRINT("got lock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define UserLeave() \
|
#define UserLeave() \
|
||||||
{ \
|
{ \
|
||||||
ASSERT(InterlockedDecrement(&_locked) == 0/*>= 0*/); \
|
ASSERT(InterlockedDecrement((PLONG)(&_locked)) == 0/*>= 0*/); \
|
||||||
/*DPRINT("unlock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
|
/*DPRINT("unlock, %s, %i (%i)\n",__FILE__,__LINE__, _locked);*/ \
|
||||||
if (UserLock.Owner != KeGetCurrentThread()) { \
|
if (UserLock.Owner != KeGetCurrentThread()) { \
|
||||||
DPRINT1("file %s, line %i\n",_file, _line); \
|
DPRINT1("file %s, line %i\n",_file, _line); \
|
||||||
|
|
Loading…
Reference in a new issue