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;