mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 02:56:09 +00:00
[WIN32SS][NTGDI] Use ProbeForWrite in NtGdiSetBitmapBits (#1325)
Use ProbeForWrite instead of ProbeForRead. CORE-15657 and CORE-15695
This commit is contained in:
parent
8886a2261a
commit
bb33692400
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue