ntdll: Fake success for ThreadPowerThrottlingState.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52956
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2022-05-22 16:10:27 +10:00 committed by Alexandre Julliard
parent 1e7c6d73c8
commit bf86dfbcad
2 changed files with 7 additions and 0 deletions

View file

@ -2255,6 +2255,12 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
FIXME( "ThreadEnableAlignmentFaultFixup stub!\n" );
return STATUS_SUCCESS;
case ThreadPowerThrottlingState:
if (length != sizeof(THREAD_POWER_THROTTLING_STATE)) return STATUS_INFO_LENGTH_MISMATCH;
if (!data) return STATUS_ACCESS_VIOLATION;
FIXME( "ThreadPowerThrottling stub!\n" );
return STATUS_SUCCESS;
case ThreadBasicInformation:
case ThreadTimes:
case ThreadPriority:

View file

@ -1158,6 +1158,7 @@ NTSTATUS WINAPI wow64_NtSetInformationThread( UINT *args )
case ThreadBasePriority: /* ULONG */
case ThreadHideFromDebugger: /* void */
case ThreadEnableAlignmentFaultFixup: /* BOOLEAN */
case ThreadPowerThrottlingState: /* THREAD_POWER_THROTTLING_STATE */
return NtSetInformationThread( handle, class, ptr, len );
case ThreadImpersonationToken: /* HANDLE */