- NtGdiEngCreateDeviceBitmap: Test size larger than 32 bits in width.

svn path=/trunk/; revision=41293
This commit is contained in:
James Tabor 2009-06-06 04:24:03 +00:00
parent dbd87f50fe
commit 3ee953f7f5

View file

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