From 5687823cbb1a95e9b00a0a6eb69de8d2b9a9b61b Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Wed, 29 Nov 2000 17:42:20 +0000 Subject: [PATCH] Fixed the size of the large_handles array. --- objects/gdiobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/gdiobj.c b/objects/gdiobj.c index 868c6183a29..f84ad5f39c3 100644 --- a/objects/gdiobj.c +++ b/objects/gdiobj.c @@ -360,7 +360,7 @@ BOOL GDI_Init(void) } #define FIRST_LARGE_HANDLE 16 -#define MAX_LARGE_HANDLES ((GDI_HEAP_SIZE - FIRST_LARGE_HANDLE) >> 2) +#define MAX_LARGE_HANDLES ((GDI_HEAP_SIZE >> 2) - FIRST_LARGE_HANDLE) static GDIOBJHDR *large_handles[MAX_LARGE_HANDLES]; static int next_large_handle;