From 0ba95f333f7cd4ab2d97575115e8507881234e6f Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Mon, 22 Oct 2018 11:51:20 +0300
Subject: [PATCH] powrprof: Add PowerDeterminePlatformRoleEx() stub.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
 .../api-ms-win-power-base-l1-1-0.spec                       | 2 +-
 dlls/powrprof/powrprof.c                                    | 6 ++++++
 dlls/powrprof/powrprof.spec                                 | 1 +
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec b/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
index 65910961d88..e51426c4bd0 100644
--- a/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
+++ b/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
@@ -1,5 +1,5 @@
 @ stdcall CallNtPowerInformation(long ptr long ptr long) powrprof.CallNtPowerInformation
 @ stdcall GetPwrCapabilities(ptr) powrprof.GetPwrCapabilities
-@ stub PowerDeterminePlatformRoleEx
+@ stdcall PowerDeterminePlatformRoleEx(long) powrprof.PowerDeterminePlatformRoleEx
 @ stub PowerRegisterSuspendResumeNotification
 @ stub PowerUnregisterSuspendResumeNotification
diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c
index 1597d96f585..d870fe2ebd0 100644
--- a/dlls/powrprof/powrprof.c
+++ b/dlls/powrprof/powrprof.c
@@ -321,6 +321,12 @@ POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole(void)
    return PlatformRoleDesktop;
 }
 
+POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRoleEx(ULONG version)
+{
+    FIXME("%u stub.\n", version);
+    return PlatformRoleDesktop;
+}
+
 DWORD WINAPI PowerEnumerate(HKEY key, const GUID *scheme, const GUID *subgroup, POWER_DATA_ACCESSOR flags,
                         ULONG index, UCHAR *buffer, DWORD *buffer_size)
 {
diff --git a/dlls/powrprof/powrprof.spec b/dlls/powrprof/powrprof.spec
index a9e337a0e46..169219ad1ac 100644
--- a/dlls/powrprof/powrprof.spec
+++ b/dlls/powrprof/powrprof.spec
@@ -11,6 +11,7 @@
 @ stdcall IsPwrShutdownAllowed ()
 @ stdcall IsPwrSuspendAllowed ()
 @ stdcall PowerDeterminePlatformRole ()
+@ stdcall PowerDeterminePlatformRoleEx(long)
 @ stdcall PowerEnumerate(long ptr ptr long long ptr ptr)
 @ stdcall PowerGetActiveScheme (ptr ptr)
 @ stdcall PowerSetActiveScheme (ptr ptr)
-- 
GitLab