mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[NTOS:PS] Revert 4d7062abb6
on request
This commit is contained in:
parent
9fa31e0f9b
commit
a7d6483e65
1 changed files with 10 additions and 39 deletions
|
@ -2032,48 +2032,19 @@ NtSetInformationThread(IN HANDLE ThreadHandle,
|
||||||
ULONG_PTR TlsIndex = 0;
|
ULONG_PTR TlsIndex = 0;
|
||||||
PVOID *ExpansionSlots;
|
PVOID *ExpansionSlots;
|
||||||
PETHREAD ProcThread;
|
PETHREAD ProcThread;
|
||||||
ULONG Alignment;
|
|
||||||
BOOLEAN HasPrivilege;
|
BOOLEAN HasPrivilege;
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
/* Check if we were called from user mode */
|
/* Verify Information Class validity */
|
||||||
if (PreviousMode != KernelMode)
|
#if 0
|
||||||
{
|
Status = DefaultSetInfoBufferCheck(ThreadInformationClass,
|
||||||
/* Enter SEH */
|
PsThreadInfoClass,
|
||||||
_SEH2_TRY
|
RTL_NUMBER_OF(PsThreadInfoClass),
|
||||||
{
|
ThreadInformation,
|
||||||
switch (ThreadInformationClass)
|
ThreadInformationLength,
|
||||||
{
|
PreviousMode);
|
||||||
case ThreadPriority:
|
if (!NT_SUCCESS(Status)) return Status;
|
||||||
Alignment = sizeof(KPRIORITY);
|
#endif
|
||||||
break;
|
|
||||||
|
|
||||||
case ThreadAffinityMask:
|
|
||||||
case ThreadQuerySetWin32StartAddress:
|
|
||||||
Alignment = sizeof(ULONG_PTR);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ThreadEnableAlignmentFaultFixup:
|
|
||||||
Alignment = sizeof(BOOLEAN);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
Alignment = sizeof(ULONG);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Probe the buffer */
|
|
||||||
ProbeForRead(ThreadInformation,
|
|
||||||
ThreadInformationLength,
|
|
||||||
Alignment);
|
|
||||||
}
|
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
|
||||||
{
|
|
||||||
/* Return the exception code */
|
|
||||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
|
||||||
}
|
|
||||||
_SEH2_END;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check what kind of information class this is */
|
/* Check what kind of information class this is */
|
||||||
switch (ThreadInformationClass)
|
switch (ThreadInformationClass)
|
||||||
|
|
Loading…
Reference in a new issue