mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:25:48 +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
1 changed files with 1 additions and 1 deletions
|
@ -1196,7 +1196,7 @@ NtGdiEngCreateDeviceBitmap(
|
||||||
IN SIZEL sizl,
|
IN SIZEL sizl,
|
||||||
IN ULONG iFormatCompat)
|
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_8RLE &&
|
||||||
iFormatCompat >= BMF_1BPP )
|
iFormatCompat >= BMF_1BPP )
|
||||||
return EngCreateDeviceBitmap(dhsurf, sizl, iFormatCompat);
|
return EngCreateDeviceBitmap(dhsurf, sizl, iFormatCompat);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue