[Wine-patches] [eterhack 04/24] ntdll: Add stub for RtlCreateRegistryKey.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Мар 4 12:25:13 MSK 2009


---
 dlls/ntdll/ntdll.spec               |    2 +-
 dlls/ntdll/reg.c                    |   10 ++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    2 +-
 include/winternl.h                  |    1 +
 4 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 82c3f02..64a2da3 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -484,7 +484,7 @@
 @ stdcall RtlCreateProcessParameters(ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr)
 @ stub RtlCreatePropertySet
 @ stdcall RtlCreateQueryDebugBuffer(long long)
-@ stub RtlCreateRegistryKey
+@ stdcall RtlCreateRegistryKey(long wstr)
 @ stdcall RtlCreateSecurityDescriptor(ptr long)
 # @ stub RtlCreateSystemVolumeInformationFolder
 @ stub RtlCreateTagHeap
diff --git a/dlls/ntdll/reg.c b/dlls/ntdll/reg.c
index 6521c70..7f7cde8 100644
--- a/dlls/ntdll/reg.c
+++ b/dlls/ntdll/reg.c
@@ -1111,6 +1111,16 @@ static NTSTATUS RTL_GetKeyHandle(ULONG RelativeTo, PCWSTR Path, PHANDLE handle)
     return status;
 }
 
+/******************************************************************************
+ * RtlCreateRegistryKey [NTDLL.@]
+ *
+ */
+NTSTATUS WINAPI RtlCreateRegistryKey(IN ULONG RelativeTo, IN PWSTR Path)
+{
+    FIXME("(%u, %s) stub!\n", RelativeTo, debugstr_w(Path));
+    return STATUS_SUCCESS;
+}
+
 /*************************************************************************
  * RtlQueryRegistryValues   [NTDLL.@]
  *
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 5ea71c0..d1e69db 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -970,7 +970,7 @@
 @ stdcall RtlCreateAcl(ptr long long) ntdll.RtlCreateAcl
 @ stdcall RtlCreateAtomTable(long ptr) ntdll.RtlCreateAtomTable
 @ stdcall RtlCreateHeap(long ptr long long ptr ptr) ntdll.RtlCreateHeap
-@ stub RtlCreateRegistryKey
+@ stdcall RtlCreateRegistryKey(long wstr) ntdll.RtlCreateRegistryKey
 @ stdcall RtlCreateSecurityDescriptor(ptr long) ntdll.RtlCreateSecurityDescriptor
 @ stub RtlCreateSystemVolumeInformationFolder
 @ stdcall RtlCreateUnicodeString(ptr wstr) ntdll.RtlCreateUnicodeString
diff --git a/include/winternl.h b/include/winternl.h
index e82247c..015b44d 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -2268,6 +2268,7 @@ NTSYSAPI NTSTATUS  WINAPI RtlCreateAtomTable(ULONG,RTL_ATOM_TABLE*);
 NTSYSAPI NTSTATUS  WINAPI RtlCreateEnvironment(BOOLEAN, PWSTR*);
 NTSYSAPI HANDLE    WINAPI RtlCreateHeap(ULONG,PVOID,SIZE_T,SIZE_T,PVOID,PRTL_HEAP_DEFINITION);
 NTSYSAPI NTSTATUS  WINAPI RtlCreateProcessParameters(RTL_USER_PROCESS_PARAMETERS**,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,PWSTR,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*);
+NTSYSAPI NTSTATUS  WINAPI RtlCreateRegistryKey(ULONG,PWSTR);
 NTSYSAPI NTSTATUS  WINAPI RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
 NTSYSAPI NTSTATUS  WINAPI RtlCreateTimerQueue(PHANDLE);
 NTSYSAPI NTSTATUS  WINAPI RtlCreateTimer(PHANDLE, HANDLE, RTL_WAITORTIMERCALLBACKFUNC, PVOID, DWORD, DWORD, ULONG);
-- 
1.6.1.3.GIT



Подробная информация о списке рассылки Wine-patches