From: Austin English Subject: ntdll: add a stub for NtLoadKey2/ZwLoadKey2 Message-Id: Date: Fri, 27 Jan 2017 01:55:57 -0600 Fixes https://bugs.winehq.org/show_bug.cgi?id=42299 -- -Austin GPG: 14FB D7EA A041 937B From 840d49a9c62e5b0acd5ab778163a1878eae8573a Mon Sep 17 00:00:00 2001 From: Austin English Date: Fri, 27 Jan 2017 01:54:18 -0600 Subject: [PATCH] ntdll: add NtLoadKey2/ZwLoadKey2 semi-stub Signed-off-by: Austin English --- dlls/ntdll/ntdll.spec | 4 ++-- dlls/ntdll/reg.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 28dc60c..a070aad 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -198,7 +198,7 @@ # @ stub NtIsSystemResumeAutomatic @ stdcall NtListenPort(ptr ptr) @ stdcall NtLoadDriver(ptr) -# @ stub NtLoadKey2 +@ stdcall NtLoadKey2(ptr ptr long) @ stdcall NtLoadKey(ptr ptr) @ stdcall NtLockFile(long long ptr ptr ptr ptr ptr ptr long long) # @ stub NtLockProductActivationKeys @@ -1123,7 +1123,7 @@ # @ stub ZwIsSystemResumeAutomatic @ stdcall -private ZwListenPort(ptr ptr) NtListenPort @ stdcall -private ZwLoadDriver(ptr) NtLoadDriver -# @ stub ZwLoadKey2 +@ stdcall ZwLoadKey2(ptr ptr long) NtLoadKey2 @ stdcall -private ZwLoadKey(ptr ptr) NtLoadKey @ stdcall -private ZwLockFile(long long ptr ptr ptr ptr ptr ptr long long) NtLockFile # @ stub ZwLockProductActivationKeys diff --git a/dlls/ntdll/reg.c b/dlls/ntdll/reg.c index e151e91..96c40ab 100644 --- a/dlls/ntdll/reg.c +++ b/dlls/ntdll/reg.c @@ -682,6 +682,20 @@ NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fil } /****************************************************************************** + * NtLoadKey2 [NTDLL.@] + * ZwLoadKey2 [NTDLL.@] + */ +NTSTATUS WINAPI NtLoadKey2(OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags) +{ + NTSTATUS ret; + + FIXME("(%p,%p,0x%08x) semi-stub: ignoring flags\n", attr, file, flags); + ret = NtLoadKey(attr, file); + + return ret; +} + +/****************************************************************************** * NtNotifyChangeMultipleKeys [NTDLL.@] * ZwNotifyChangeMultipleKeys [NTDLL.@] */ -- 2.10.2