Author: sginsberg
Date: Tue Nov 10 00:07:04 2009
New Revision: 44062
URL:
http://svn.reactos.org/svn/reactos?rev=44062&view=rev
Log:
- Fix unsigned/signed compare, spotted by Christoph
Modified:
trunk/reactos/hal/halx86/generic/bus/bushndlr.c
Modified: trunk/reactos/hal/halx86/generic/bus/bushndlr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/bus/bus…
==============================================================================
--- trunk/reactos/hal/halx86/generic/bus/bushndlr.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/bus/bushndlr.c [iso-8859-1] Tue Nov 10 00:07:04 2009
@@ -30,7 +30,7 @@
ULONG Size;
/* Compute array size */
- if (ArraySize == -1) ArraySize = 0;
+ if (ArraySize == MAXULONG) ArraySize = 0;
Size = ArraySize * sizeof(PARRAY) + sizeof(ARRAY);
/* Allocate the array */