From ccd3b00fd21cb43877155a8d89aba537293de9e4 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Mon, 9 Nov 2009 23:07:04 +0000 Subject: [PATCH] - Fix unsigned/signed compare, spotted by Christoph svn path=/trunk/; revision=44062 --- reactos/hal/halx86/generic/bus/bushndlr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */