[WIN32SS][NTGDI] Use ProbeForWrite in NtGdiSetBitmapBits (#1325)

Use ProbeForWrite instead of ProbeForRead. CORE-15657 and CORE-15695
This commit is contained in:
Katayama Hirofumi MZ 2019-01-30 16:54:45 +09:00 committed by GitHub
parent 8886a2261a
commit bb33692400
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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