Added patch to improve WTSQueryUserToken stub.

This commit is contained in:
Sebastian Lackner 2016-02-11 19:09:51 +01:00
parent b52385ec2a
commit 0836349fc9
3 changed files with 46 additions and 0 deletions

View File

@ -371,6 +371,7 @@ patch_enable_all ()
enable_ws2_32_getaddrinfo="$1"
enable_ws2_32_getsockopt="$1"
enable_wtsapi32_EnumerateProcesses="$1"
enable_wtsapi32_WTSQueryUserToken="$1"
enable_wusa_MSU_Package_Installer="$1"
}
@ -1257,6 +1258,9 @@ patch_enable ()
wtsapi32-EnumerateProcesses)
enable_wtsapi32_EnumerateProcesses="$2"
;;
wtsapi32-WTSQueryUserToken)
enable_wtsapi32_WTSQueryUserToken="$2"
;;
wusa-MSU_Package_Installer)
enable_wusa_MSU_Package_Installer="$2"
;;
@ -7180,6 +7184,21 @@ if test "$enable_wtsapi32_EnumerateProcesses" -eq 1; then
) >> "$patchlist"
fi
# Patchset wtsapi32-WTSQueryUserToken
# |
# | This patchset fixes the following Wine bugs:
# | * [#39663] Improve WTSQueryUserToken stub to make GOG Galaxy happy
# |
# | Modified files:
# | * dlls/wtsapi32/wtsapi32.c
# |
if test "$enable_wtsapi32_WTSQueryUserToken" -eq 1; then
patch_apply wtsapi32-WTSQueryUserToken/0001-wtsapi32-Improve-WTSQueryUserToken-stub.patch
(
echo '+ { "Sebastian Lackner", "wtsapi32: Improve WTSQueryUserToken stub.", 1 },';
) >> "$patchlist"
fi
# Patchset wusa-MSU_Package_Installer
# |
# | This patchset fixes the following Wine bugs:

View File

@ -0,0 +1,26 @@
From 83df2a25df1f0a9e057fbac19c2c1601373b9c38 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Thu, 11 Feb 2016 19:07:36 +0100
Subject: wtsapi32: Improve WTSQueryUserToken stub.
---
dlls/wtsapi32/wtsapi32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wtsapi32/wtsapi32.c b/dlls/wtsapi32/wtsapi32.c
index c668604..e1a9cd2 100644
--- a/dlls/wtsapi32/wtsapi32.c
+++ b/dlls/wtsapi32/wtsapi32.c
@@ -243,7 +243,8 @@ BOOL WINAPI WTSQuerySessionInformationW(
BOOL WINAPI WTSQueryUserToken(ULONG session_id, PHANDLE token)
{
FIXME("%u %p\n", session_id, token);
- return FALSE;
+ if (token) *token = GetCurrentProcessToken();
+ return token != NULL;
}
/************************************************************
--
2.7.1

View File

@ -0,0 +1 @@
Fixes: [39663] Improve WTSQueryUserToken stub to make GOG Galaxy happy