From 3ee953f7f5879d3ea80c7c11fa18edb2dc973ba6 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 6 Jun 2009 04:24:03 +0000 Subject: [PATCH] - NtGdiEngCreateDeviceBitmap: Test size larger than 32 bits in width. svn path=/trunk/; revision=41293 --- reactos/subsystems/win32/win32k/stubs/stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/stubs/stubs.c b/reactos/subsystems/win32/win32k/stubs/stubs.c index 18082202a5c..fbd47ae681b 100644 --- a/reactos/subsystems/win32/win32k/stubs/stubs.c +++ b/reactos/subsystems/win32/win32k/stubs/stubs.c @@ -1196,7 +1196,7 @@ NtGdiEngCreateDeviceBitmap( IN SIZEL sizl, IN ULONG iFormatCompat) { - if ( ( sizl.cx > 0 && sizl.cy > 0 && ((sizl.cy * sizl.cx) <= -1) ) && + if ( ( sizl.cx > 0 && sizl.cy > 0 && (((LONGLONG)(sizl.cy * sizl.cx)) <= 0xFFFFFFFFULL) ) && iFormatCompat <= BMF_8RLE && iFormatCompat >= BMF_1BPP ) return EngCreateDeviceBitmap(dhsurf, sizl, iFormatCompat);