From 2e7c6d22ad29d15d5daf3e678edc979abedf3691 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 21 Sep 2005 17:37:08 +0000 Subject: [PATCH] fixed differences in signedness warnings svn path=/trunk/; revision=17970 --- reactos/subsys/win32k/include/ntuser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/include/ntuser.h b/reactos/subsys/win32k/include/ntuser.h index 56483e93025..bb5d170e2e0 100644 --- a/reactos/subsys/win32k/include/ntuser.h +++ b/reactos/subsys/win32k/include/ntuser.h @@ -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); \ -- 2.17.1