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);