Dmitry Timoshkov : ntdll: Use full registry key name in NtQueryLicenseValue.

Alexandre Julliard julliard at winehq.org
Wed Jan 12 15:57:48 CST 2022


Module: wine
Branch: master
Commit: 58bf1112dff524ec0f06d1446897bdc8052757ec
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=58bf1112dff524ec0f06d1446897bdc8052757ec

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Jan 12 10:41:25 2022 +0300

ntdll: Use full registry key name in NtQueryLicenseValue.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/registry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/registry.c b/dlls/ntdll/unix/registry.c
index 265ed39bd17..6628454440a 100644
--- a/dlls/ntdll/unix/registry.c
+++ b/dlls/ntdll/unix/registry.c
@@ -780,7 +780,8 @@ NTSTATUS WINAPI NtReplaceKey( OBJECT_ATTRIBUTES *attr, HANDLE key, OBJECT_ATTRIB
 NTSTATUS WINAPI NtQueryLicenseValue( const UNICODE_STRING *name, ULONG *type,
                                      void *data, ULONG length, ULONG *retlen )
 {
-    static const WCHAR nameW[] = {'M','a','c','h','i','n','e','\\',
+    static const WCHAR nameW[] = {'\\','R','e','g','i','s','t','r','y','\\',
+                                  'M','a','c','h','i','n','e','\\',
                                   'S','o','f','t','w','a','r','e','\\',
                                   'W','i','n','e','\\','L','i','c','e','n','s','e',
                                   'I','n','f','o','r','m','a','t','i','o','n',0};




More information about the wine-cvs mailing list