[WIN32K:NTGDI] Add missing probe to NtGdiGetPath.

This commit is contained in:
Thomas Faber 2019-12-31 21:07:39 +01:00
parent f0d2bd3852
commit 5b83d86af5
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -2694,8 +2694,21 @@ NtGdiGetPath(
{
INT ret = -1;
PPATH pPath;
DC *dc;
DC *dc = DC_LockDc(hDC);
_SEH2_TRY
{
ProbeForWrite(Points, nSize * sizeof(*Points), sizeof(ULONG));
ProbeForWrite(Types, nSize, 1);
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
SetLastNtError(_SEH2_GetExceptionCode());
_SEH2_YIELD(return -1);
}
_SEH2_END
dc = DC_LockDc(hDC);
DPRINT("NtGdiGetPath start\n");
if (!dc)
{