[WIN32SS][NTGDI] Alignment probe change in NtGdiSetBitmapBits (#1309)

Don't check WORD alignment in NtGdiSetBitmapBits to match Win2k3 behaviour. CORE-15657
This commit is contained in:
Katayama Hirofumi MZ 2019-01-27 16:11:23 +09:00 committed by GitHub
parent 29795a2d72
commit 6b8f9c0c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -642,7 +642,8 @@ NtGdiSetBitmapBits(
_SEH2_TRY
{
ProbeForRead(pUnsafeBits, Bytes, sizeof(WORD));
/* NOTE: Win2k3 doesn't check WORD alignment here. */
ProbeForRead(pUnsafeBits, Bytes, 1);
ret = UnsafeSetBitmapBits(psurf, Bytes, pUnsafeBits);
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)