https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6020af20146d798b878d5…
commit 6020af20146d798b878d5701fb16328c16835be5
Author: Tibor Lajos Füzi <tibor.fuzi(a)gmail.com>
AuthorDate: Mon Mar 30 12:11:38 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Mar 30 12:11:38 2020 +0200
[GDI32] Allow BI_BITFIELDS compression in CreateDIBitmap (#2448)
CORE-16750, CORE-15960
---
win32ss/gdi/gdi32/objects/bitmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/gdi32/objects/bitmap.c b/win32ss/gdi/gdi32/objects/bitmap.c
index a3f4c482c6f..3e56194ce95 100644
--- a/win32ss/gdi/gdi32/objects/bitmap.c
+++ b/win32ss/gdi/gdi32/objects/bitmap.c
@@ -486,7 +486,7 @@ CreateDIBitmap(
}
/* Check if the Compr is incompatible */
- if ((Compression == BI_JPEG) || (Compression == BI_PNG) || (Compression ==
BI_BITFIELDS))
+ if ((Compression == BI_JPEG) || (Compression == BI_PNG))
{
DPRINT1("Invalid compression: %lu!\n", Compression);
goto Exit;