Austin English : ntdll: Add a stub for NtLoadKey2.

Alexandre Julliard julliard at winehq.org
Wed Feb 1 15:26:10 CST 2017


Module: wine
Branch: master
Commit: 6d89be5496ba581d88ddba076ccaed157fd0b426
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6d89be5496ba581d88ddba076ccaed157fd0b426

Author: Austin English <austinenglish at gmail.com>
Date:   Fri Jan 27 01:54:18 2017 -0600

ntdll: Add a stub for NtLoadKey2.

Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/ntdll.spec |  4 ++--
 dlls/ntdll/reg.c      | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 2ee614f..4cbc3b0 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..2dd75be 100644
--- a/dlls/ntdll/reg.c
+++ b/dlls/ntdll/reg.c
@@ -682,6 +682,16 @@ 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)
+{
+    FIXME("(%p,%p,0x%08x) semi-stub: ignoring flags\n", attr, file, flags);
+    return NtLoadKey(attr, file);
+}
+
+/******************************************************************************
  *  NtNotifyChangeMultipleKeys  [NTDLL.@]
  *  ZwNotifyChangeMultipleKeys  [NTDLL.@]
  */




More information about the wine-cvs mailing list