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;