fixed differences in signedness warnings
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 21 Sep 2005 17:37:08 +0000 (17:37 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 21 Sep 2005 17:37:08 +0000 (17:37 +0000)
svn path=/trunk/; revision=17970

reactos/subsys/win32k/include/ntuser.h

index 56483e9..bb5d170 100644 (file)
@@ -27,14 +27,14 @@ extern FAST_MUTEX UserLock;
       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