diff --git a/reactos/win32ss/gdi/eng/rlecomp.c b/reactos/win32ss/gdi/eng/rlecomp.c index 2cc3a6be616..c00167c1403 100644 --- a/reactos/win32ss/gdi/eng/rlecomp.c +++ b/reactos/win32ss/gdi/eng/rlecomp.c @@ -33,7 +33,7 @@ VOID DecompressBitmap(SIZEL Size, BYTE *CompressedBits, BYTE *UncompressedBits, if ((Format == BMF_4RLE) || (Format == BMF_4BPP)) shift = 1; - else if ((Format != BMF_8RLE) || (Format == BMF_8BPP)) + else if ((Format != BMF_8RLE) && (Format != BMF_8BPP)) return; width = ((Size.cx + shift) >> shift);