Author: jimtabor
Date: Sat Jun 6 08:24:03 2009
New Revision: 41293
URL:
http://svn.reactos.org/svn/reactos?rev=41293&view=rev
Log:
- NtGdiEngCreateDeviceBitmap: Test size larger than 32 bits in width.
Modified:
trunk/reactos/subsystems/win32/win32k/stubs/stubs.c
Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c [iso-8859-1] Sat Jun 6 08:24:03
2009
@@ -1196,7 +1196,7 @@
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);