mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- NtGdiEngCreateDeviceBitmap: Test size larger than 32 bits in width.
svn path=/trunk/; revision=41293
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user