mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 12:23:28 +00:00
- Fix unsigned/signed compare, spotted by Christoph
svn path=/trunk/; revision=44062
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user