From 27951d117bc02abc1ada91ad3a0c09db10c675c2 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 11 Jun 2017 11:18:57 +0000 Subject: [PATCH] [WIN32K] Remove an unneeded check at GreGetDIBitsInternal. Patch by Victor Martinez Calvo. CORE-13413 CID 1411972 svn path=/trunk/; revision=74999 --- reactos/win32ss/gdi/ntgdi/dibobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/ntgdi/dibobj.c b/reactos/win32ss/gdi/ntgdi/dibobj.c index 6bb099038b8..461f63d9c26 100644 --- a/reactos/win32ss/gdi/ntgdi/dibobj.c +++ b/reactos/win32ss/gdi/ntgdi/dibobj.c @@ -759,7 +759,7 @@ GreGetDIBitsInternal( if (Bits || bpp) { - if ((height == 0 || planes < 0 || width == 0) || (compr && compr != BI_BITFIELDS && compr != BI_RGB)) + if ((height == 0 || width == 0) || (compr && compr != BI_BITFIELDS && compr != BI_RGB)) { ScanLines = 0; goto done;