diff --git a/reactos/hal/halx86/generic/bus/bushndlr.c b/reactos/hal/halx86/generic/bus/bushndlr.c index 3b5472be668..18121360a62 100644 --- a/reactos/hal/halx86/generic/bus/bushndlr.c +++ b/reactos/hal/halx86/generic/bus/bushndlr.c @@ -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 */