From d36701371ec13fe4dedf90ca1d21d73775ff629e Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 25 May 2017 05:57:44 +0200 Subject: [PATCH] Added patch with stub for ntdll.NtContinue. --- .../0001-ntdll-Add-stub-for-NtContinue.patch | 56 +++++++++++++++++++ patches/patchinstall.sh | 16 ++++++ 2 files changed, 72 insertions(+) create mode 100644 patches/ntdll-NtContinue/0001-ntdll-Add-stub-for-NtContinue.patch diff --git a/patches/ntdll-NtContinue/0001-ntdll-Add-stub-for-NtContinue.patch b/patches/ntdll-NtContinue/0001-ntdll-Add-stub-for-NtContinue.patch new file mode 100644 index 00000000..75c9b314 --- /dev/null +++ b/patches/ntdll-NtContinue/0001-ntdll-Add-stub-for-NtContinue.patch @@ -0,0 +1,56 @@ +From 36164f1194aca4922459b0bd65dcf1d27158839c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Thu, 25 May 2017 05:04:26 +0200 +Subject: ntdll: Add stub for NtContinue. + +--- + dlls/ntdll/exception.c | 10 ++++++++++ + dlls/ntdll/ntdll.spec | 4 ++-- + 2 files changed, 12 insertions(+), 2 deletions(-) + +diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c +index daca45aa836..4429a4217a1 100644 +--- a/dlls/ntdll/exception.c ++++ b/dlls/ntdll/exception.c +@@ -301,6 +301,16 @@ ULONG WINAPI RtlRemoveVectoredExceptionHandler( PVOID handler ) + } + + ++/********************************************************************* ++ * NtContinue (NTDLL.@) ++ */ ++NTSTATUS WINAPI NtContinue( CONTEXT *context, BOOLEAN alert ) ++{ ++ FIXME( "(%p, %d) stub!\n", context, alert ); ++ return STATUS_NOT_IMPLEMENTED; ++} ++ ++ + /************************************************************* + * __wine_spec_unimplemented_stub + * +diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec +index 9adf1edd4a5..877a845dfa9 100644 +--- a/dlls/ntdll/ntdll.spec ++++ b/dlls/ntdll/ntdll.spec +@@ -128,7 +128,7 @@ + @ stdcall NtCompleteConnectPort(ptr) + # @ stub NtCompressKey + @ stdcall NtConnectPort(ptr ptr ptr ptr ptr ptr ptr ptr) +-@ stub NtContinue ++@ stdcall NtContinue(ptr long) + # @ stub NtCreateDebugObject + @ stdcall NtCreateDirectoryObject(ptr long ptr) + @ stdcall NtCreateEvent(ptr long ptr long long) +@@ -1055,7 +1055,7 @@ + @ stdcall -private ZwCompleteConnectPort(ptr) NtCompleteConnectPort + # @ stub ZwCompressKey + @ stdcall -private ZwConnectPort(ptr ptr ptr ptr ptr ptr ptr ptr) NtConnectPort +-@ stub ZwContinue ++@ stdcall -private ZwContinue(ptr long) NtContinue + # @ stub ZwCreateDebugObject + @ stdcall -private ZwCreateDirectoryObject(ptr long ptr) NtCreateDirectoryObject + @ stdcall -private ZwCreateEvent(ptr long ptr long long) NtCreateEvent +-- +2.12.2 + diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index faebac26..873e207c 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -242,6 +242,7 @@ patch_enable_all () enable_ntdll_Loader_Machine_Type="$1" enable_ntdll_NtAccessCheck="$1" enable_ntdll_NtAllocateUuids="$1" + enable_ntdll_NtContinue="$1" enable_ntdll_NtCreateThreadEx="$1" enable_ntdll_NtQueryEaFile="$1" enable_ntdll_NtQuerySection="$1" @@ -960,6 +961,9 @@ patch_enable () ntdll-NtAllocateUuids) enable_ntdll_NtAllocateUuids="$2" ;; + ntdll-NtContinue) + enable_ntdll_NtContinue="$2" + ;; ntdll-NtCreateThreadEx) enable_ntdll_NtCreateThreadEx="$2" ;; @@ -5661,6 +5665,18 @@ if test "$enable_ntdll_NtAllocateUuids" -eq 1; then ) >> "$patchlist" fi +# Patchset ntdll-NtContinue +# | +# | Modified files: +# | * dlls/ntdll/exception.c, dlls/ntdll/ntdll.spec +# | +if test "$enable_ntdll_NtContinue" -eq 1; then + patch_apply ntdll-NtContinue/0001-ntdll-Add-stub-for-NtContinue.patch + ( + printf '%s\n' '+ { "Michael Müller", "ntdll: Add stub for NtContinue.", 1 },'; + ) >> "$patchlist" +fi + # Patchset ntdll-NtCreateThreadEx # | # | Modified files: