Added ntdll-NtQueryInformationProcess-ProcessCookie patchset

This commit is contained in:
Alistair Leslie-Hughes 2018-07-30 12:21:41 +10:00
parent 87b63971e9
commit 00de4984f6
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,35 @@
From 66039784d648883d899f33278fd8e31f946edb05 Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
Date: Thu, 26 Jul 2018 11:34:32 -0500
Subject: [PATCH] ntdll: Stub for ProcessCookie in NtQueryInformationProcess.
---
dlls/ntdll/process.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c
index b299287..4e08c62 100644
--- a/dlls/ntdll/process.c
+++ b/dlls/ntdll/process.c
@@ -572,6 +572,18 @@ NTSTATUS WINAPI NtQueryInformationProcess(
else
ret = STATUS_INFO_LENGTH_MISMATCH;
break;
+ case ProcessCookie:
+ FIXME("(%p,info_class=%d,%p,0x%08x,%p) stub\n",
+ ProcessHandle,ProcessInformationClass,
+ ProcessInformation,ProcessInformationLength,
+ ReturnLength);
+
+ len = sizeof(ULONG);
+ if (ProcessInformationLength == len)
+ *(ULONG *)ProcessInformation = 0;
+ else
+ ret = STATUS_INFO_LENGTH_MISMATCH;
+ break;
default:
FIXME("(%p,info_class=%d,%p,0x%08x,%p) Unknown information class\n",
ProcessHandle,ProcessInformationClass,
--
1.9.1

View File

@ -0,0 +1 @@
Fixes: [45327] Added support ProcessCookie in NtQueryInformationProcess

View File

@ -225,6 +225,7 @@ patch_enable_all ()
enable_ntdll_NtContinue="$1"
enable_ntdll_NtDevicePath="$1"
enable_ntdll_NtQueryEaFile="$1"
enable_ntdll_NtQueryInformationProcess_ProcessCookie="$1"
enable_ntdll_NtQuerySection="$1"
enable_ntdll_NtQueryVirtualMemory="$1"
enable_ntdll_NtSetLdtEntries="$1"
@ -851,6 +852,9 @@ patch_enable ()
ntdll-NtQueryEaFile)
enable_ntdll_NtQueryEaFile="$2"
;;
ntdll-NtQueryInformationProcess-ProcessCookie)
enable_ntdll_NtQueryInformationProcess_ProcessCookie="$2"
;;
ntdll-NtQuerySection)
enable_ntdll_NtQuerySection="$2"
;;
@ -5105,6 +5109,21 @@ if test "$enable_ntdll_NtDevicePath" -eq 1; then
) >> "$patchlist"
fi
# Patchset ntdll-NtQueryInformationProcess-ProcessCookie
# |
# | This patchset fixes the following Wine bugs:
# | * [#45327] Add RtlSetUnhandledExceptionFilter stub
# |
# | Modified files:
# | * dlls/ntdll/process.c
# |
if test "$enable_ntdll_NtQueryInformationProcess_ProcessCookie" -eq 1; then
patch_apply ntdll-NtQueryInformationProcess-ProcessCookie/0001-ntdll-Stub-for-ProcessCookie-in-NtQueryInformationPr.patch
(
printf '%s\n' '+ { "Andrew Wesie", "ntdll: Stub for ProcessCookie in NtQueryInformationProcess.", 1 },';
) >> "$patchlist"
fi
# Patchset ntdll-NtQuerySection
# |
# | Modified files: