Alistair Leslie-Hughes : ntdll: Fake success for ThreadPowerThrottlingState.

Alexandre Julliard julliard at winehq.org
Wed May 25 16:51:47 CDT 2022


Module: wine
Branch: master
Commit: bf86dfbcadbe0e79ae07afb57e469f388a9104a7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=bf86dfbcadbe0e79ae07afb57e469f388a9104a7

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Sun May 22 16:10:27 2022 +1000

ntdll: Fake success for ThreadPowerThrottlingState.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52956
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/thread.c | 6 ++++++
 dlls/wow64/process.c     | 1 +
 2 files changed, 7 insertions(+)

diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c
index 6d937675bcb..15bb3be34b2 100644
--- a/dlls/ntdll/unix/thread.c
+++ b/dlls/ntdll/unix/thread.c
@@ -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:
diff --git a/dlls/wow64/process.c b/dlls/wow64/process.c
index 82ca4181116..0c6726b9c6e 100644
--- a/dlls/wow64/process.c
+++ b/dlls/wow64/process.c
@@ -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 */




More information about the wine-cvs mailing list