Dmitry Timoshkov : advapi32: If the query is not specified the default query is "Global".

Alexandre Julliard julliard at winehq.org
Thu Jul 12 17:45:39 CDT 2018


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Jul 11 12:16:19 2018 +0800

advapi32: If the query is not specified the default query is "Global".

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

---

 dlls/advapi32/registry.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index ce56b5a..3daf53d 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -1582,9 +1582,13 @@ error:
 
 static DWORD collect_data(struct perf_provider *provider, const WCHAR *query, void **data, DWORD *size, DWORD *obj_count)
 {
+    static const WCHAR globalW[] = { 'G','l','o','b','a','l',0 };
     WCHAR *linkage = provider->linkage[0] ? provider->linkage : NULL;
     DWORD err;
 
+    if (!query || !query[0])
+        query = globalW;
+
     err = provider->pOpen(linkage);
     if (err != ERROR_SUCCESS)
     {




More information about the wine-cvs mailing list