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

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-07-11 12:16:19 +08:00 committed by Alexandre Julliard
parent a77eed47b4
commit 8be6b299bc
1 changed files with 4 additions and 0 deletions

View File

@ -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)
{