- Fix unsigned/signed compare, spotted by Christoph
authorStefan Ginsberg <stefanginsberg@gmail.com>
Mon, 9 Nov 2009 23:07:04 +0000 (23:07 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Mon, 9 Nov 2009 23:07:04 +0000 (23:07 +0000)
svn path=/trunk/; revision=44062

reactos/hal/halx86/generic/bus/bushndlr.c

index 3b5472b..1812136 100644 (file)
@@ -30,7 +30,7 @@ HalpAllocateArray(IN ULONG ArraySize)
     ULONG Size;
     
     /* Compute array size */
-    if (ArraySize == -1) ArraySize = 0;
+    if (ArraySize == MAXULONG) ArraySize = 0;
     Size = ArraySize * sizeof(PARRAY) + sizeof(ARRAY);
     
     /* Allocate the array */