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:
parent
a77eed47b4
commit
8be6b299bc
|
@ -1582,9 +1582,13 @@ error:
|
||||||
|
|
||||||
static DWORD collect_data(struct perf_provider *provider, const WCHAR *query, void **data, DWORD *size, DWORD *obj_count)
|
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;
|
WCHAR *linkage = provider->linkage[0] ? provider->linkage : NULL;
|
||||||
DWORD err;
|
DWORD err;
|
||||||
|
|
||||||
|
if (!query || !query[0])
|
||||||
|
query = globalW;
|
||||||
|
|
||||||
err = provider->pOpen(linkage);
|
err = provider->pOpen(linkage);
|
||||||
if (err != ERROR_SUCCESS)
|
if (err != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue