mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[NTOSKRNL]
Revert r68221: probing *should* be done in NtSetSystemInformation() Let's check there why it's not done instead... svn path=/trunk/; revision=68222
This commit is contained in:
parent
103e282d2d
commit
c37f5f9e7c
1 changed files with 3 additions and 36 deletions
|
@ -2068,31 +2068,10 @@ SSI_DEF(SystemSessionCreate)
|
|||
{
|
||||
return STATUS_PRIVILEGE_NOT_HELD;
|
||||
}
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWriteUlong(Buffer);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
|
||||
Status = MmSessionCreate(&SessionId);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
*(PULONG)Buffer = SessionId;
|
||||
}
|
||||
_SEH2_EXCEPT(ExSystemExceptionFilter())
|
||||
{
|
||||
Status = _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
if (NT_SUCCESS(Status)) *(PULONG)Buffer = SessionId;
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
@ -2112,21 +2091,9 @@ SSI_DEF(SystemSessionDetach)
|
|||
{
|
||||
return STATUS_PRIVILEGE_NOT_HELD;
|
||||
}
|
||||
}
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
SessionId = ProbeForReadUlong(Buffer);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
else
|
||||
{
|
||||
SessionId = *(PULONG)Buffer;
|
||||
}
|
||||
SessionId = *(PULONG)Buffer;
|
||||
|
||||
return MmSessionDelete(SessionId);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue