ntdll: Add stub for NtQuerySystemEnvironmentValueEx

André Hentschel nerv at dawncrow.de
Tue Jun 5 12:32:37 CDT 2012


fixes http://bugs.winehq.org/show_bug.cgi?id=30848
---
 dlls/ntdll/env.c      |   12 +++++++++++-
 dlls/ntdll/ntdll.spec |    2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/env.c b/dlls/ntdll/env.c
index 91ad6bc..a5bdf0f 100644
--- a/dlls/ntdll/env.c
+++ b/dlls/ntdll/env.c
@@ -42,7 +42,17 @@ NTSYSAPI NTSTATUS WINAPI NtQuerySystemEnvironmentValue(PUNICODE_STRING VariableN
                                                        ULONG ValueBufferLength,
                                                        PULONG RequiredLength)
 {
-    FIXME("stub!\n");
+    FIXME("(%s, %p, %u, %p), stub\n", debugstr_us(VariableName), Value, ValueBufferLength, RequiredLength);
+    return STATUS_NOT_IMPLEMENTED;
+}
+
+/******************************************************************************
+ *  NtQuerySystemEnvironmentValueEx		[NTDLL.@]
+ */
+NTSYSAPI NTSTATUS WINAPI NtQuerySystemEnvironmentValueEx(PUNICODE_STRING name, LPGUID vendor,
+                                                         PVOID value, PULONG retlength, PULONG attrib)
+{
+    FIXME("(%s, %s, %p, %p, %p), stub\n", debugstr_us(name), debugstr_guid(vendor), value, retlength, attrib);
     return STATUS_NOT_IMPLEMENTED;
 }
 
diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 65fd405..8de353f 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -266,7 +266,7 @@
 @ stdcall NtQuerySemaphore (long long ptr long ptr)
 @ stdcall NtQuerySymbolicLinkObject(long ptr ptr)
 @ stdcall NtQuerySystemEnvironmentValue(ptr ptr long ptr)
-# @ stub NtQuerySystemEnvironmentValueEx
+@ stdcall NtQuerySystemEnvironmentValueEx(ptr ptr ptr ptr ptr)
 @ stdcall NtQuerySystemInformation(long long long long)
 @ stdcall NtQuerySystemTime(ptr)
 @ stdcall NtQueryTimer(ptr long ptr long ptr)
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list