[NTGDI] GetPixel's return top byte is zero if valid (#5677)

According to the results of CImage testcase,
the top byte of the GetPixel() return value is
zero if the return is a valid color.
Do bitwise-AND operation if the color value is valid.
CORE-19008
This commit is contained in:
Katayama Hirofumi MZ 2023-09-12 05:56:36 +09:00 committed by GitHub
parent ea5d2c5f7a
commit 2a16fc5e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1598,6 +1598,9 @@ NtGdiGetPixel(
/* Delete the surface */ /* Delete the surface */
GDIOBJ_vDeleteObject(&psurfDest->BaseObject); GDIOBJ_vDeleteObject(&psurfDest->BaseObject);
/* The top byte is zero */
ulRGBColor &= 0x00FFFFFF;
} }
leave: leave: