mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Added patch to return success for TokenSessionId in NtSetInformationToken.
This commit is contained in:
parent
604d23df7c
commit
4b0fe0c820
@ -0,0 +1,37 @@
|
||||
From de7c25e765a81c348ee0df60f9cb311cf5feeb18 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Fri, 13 Jan 2017 22:49:13 +0100
|
||||
Subject: ntdll: Return success for TokenSessionId in NtSetInformationToken.
|
||||
|
||||
---
|
||||
dlls/ntdll/nt.c | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
|
||||
index 7660ea8ce74..9347170a593 100644
|
||||
--- a/dlls/ntdll/nt.c
|
||||
+++ b/dlls/ntdll/nt.c
|
||||
@@ -602,6 +602,20 @@ NTSTATUS WINAPI NtSetInformationToken(
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
break;
|
||||
+ case TokenSessionId:
|
||||
+ if (TokenInformationLength < sizeof(DWORD))
|
||||
+ {
|
||||
+ ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||
+ break;
|
||||
+ }
|
||||
+ if (!TokenInformation)
|
||||
+ {
|
||||
+ ret = STATUS_ACCESS_VIOLATION;
|
||||
+ break;
|
||||
+ }
|
||||
+ FIXME("handling of TokenSessionId not implemented\n");
|
||||
+ ret = STATUS_SUCCESS;
|
||||
+ break;
|
||||
default:
|
||||
FIXME("unimplemented class %u\n", TokenInformationClass);
|
||||
break;
|
||||
--
|
||||
2.11.0
|
||||
|
1
patches/ntdll-NtSetInformationToken/definition
Normal file
1
patches/ntdll-NtSetInformationToken/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [32907] Return success for TokenSessionId in NtSetInformationToken
|
@ -232,6 +232,7 @@ patch_enable_all ()
|
||||
enable_ntdll_NtAccessCheck="$1"
|
||||
enable_ntdll_NtQueryEaFile="$1"
|
||||
enable_ntdll_NtQuerySection="$1"
|
||||
enable_ntdll_NtSetInformationToken="$1"
|
||||
enable_ntdll_NtSetLdtEntries="$1"
|
||||
enable_ntdll_Pipe_SpecialCharacters="$1"
|
||||
enable_ntdll_ProcessQuotaLimits="$1"
|
||||
@ -893,6 +894,9 @@ patch_enable ()
|
||||
ntdll-NtQuerySection)
|
||||
enable_ntdll_NtQuerySection="$2"
|
||||
;;
|
||||
ntdll-NtSetInformationToken)
|
||||
enable_ntdll_NtSetInformationToken="$2"
|
||||
;;
|
||||
ntdll-NtSetLdtEntries)
|
||||
enable_ntdll_NtSetLdtEntries="$2"
|
||||
;;
|
||||
@ -5413,6 +5417,21 @@ if test "$enable_ntdll_NtQuerySection" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset ntdll-NtSetInformationToken
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#32907] Return success for TokenSessionId in NtSetInformationToken
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/ntdll/nt.c
|
||||
# |
|
||||
if test "$enable_ntdll_NtSetInformationToken" -eq 1; then
|
||||
patch_apply ntdll-NtSetInformationToken/0001-ntdll-Return-success-for-TokenSessionId-in-NtSetInfo.patch
|
||||
(
|
||||
echo '+ { "Michael Müller", "ntdll: Return success for TokenSessionId in NtSetInformationToken.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset ntdll-NtSetLdtEntries
|
||||
# |
|
||||
# | Modified files:
|
||||
|
Loading…
Reference in New Issue
Block a user