fixed some signed/unsigned comparison warnings with -Wsign-compare
[reactos.git] / reactos / lib / kernel32 / process / create.c
index ddd1744..1a0dc29 100644 (file)
@@ -191,7 +191,7 @@ BOOL STDCALL CreateProcessA(LPCSTR lpApplicationName,
       nEnvLen = (ULONG_PTR)pcScan - (ULONG_PTR)lpEnvironment + 1;
 
       /* environment too large */
-      if(nEnvLen > ~((USHORT)0))
+      if(nEnvLen > (SIZE_T)((USHORT)~0))
       {
          SetLastError(ERROR_OUTOFMEMORY);
          return FALSE;