mirror of
https://github.com/reactos/reactos.git
synced 2024-08-10 21:27:57 +00:00
- NtGdiEngCreateDeviceBitmap: Test size larger than 32 bits in width.
svn path=/trunk/; revision=41293
This commit is contained in:
parent
dbd87f50fe
commit
3ee953f7f5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue