From 7d7b8e2a88c58e05fb80d3600a52c473ddee4c5d Mon Sep 17 00:00:00 2001 From: David Koolhoven Date: Mon, 26 Apr 2021 14:38:08 -0400 Subject: [PATCH] advapi32: Stub QueryTraceA(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50992 Signed-off-by: David Koolhoven Signed-off-by: Alexandre Julliard --- dlls/advapi32/advapi32.spec | 2 +- dlls/advapi32/eventlog.c | 9 +++++++++ .../api-ms-win-eventing-legacy-l1-1-0.spec | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index d5235c6adb9..1b7a83d347a 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -603,7 +603,7 @@ @ stdcall -import QueryServiceObjectSecurity(long long ptr long ptr) @ stdcall -import QueryServiceStatus(long ptr) @ stdcall -import QueryServiceStatusEx (long long ptr long ptr) -# @ stub QueryTraceA +@ stdcall QueryTraceA(int64 str ptr) @ stdcall QueryTraceW(int64 wstr ptr) # @ stub QueryUserServiceName # @ stub QueryUsersOnEncryptedFile diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c index c01955e22d5..22e5a3f9d59 100644 --- a/dlls/advapi32/eventlog.c +++ b/dlls/advapi32/eventlog.c @@ -673,6 +673,15 @@ ULONG WINAPI StopTraceA( TRACEHANDLE session, LPCSTR session_name, PEVENT_TRACE_ return ERROR_SUCCESS; } +/****************************************************************************** + * QueryTraceA [ADVAPI32.@] + */ +ULONG WINAPI QueryTraceA( TRACEHANDLE handle, LPCSTR sessionname, PEVENT_TRACE_PROPERTIES properties ) +{ + FIXME("%s %s %p: stub\n", wine_dbgstr_longlong(handle), debugstr_a(sessionname), properties); + return ERROR_WMI_INSTANCE_NOT_FOUND; +} + /****************************************************************************** * QueryTraceW [ADVAPI32.@] */ diff --git a/dlls/api-ms-win-eventing-legacy-l1-1-0/api-ms-win-eventing-legacy-l1-1-0.spec b/dlls/api-ms-win-eventing-legacy-l1-1-0/api-ms-win-eventing-legacy-l1-1-0.spec index 8e1aa7fc8e7..cd12ac02ca8 100644 --- a/dlls/api-ms-win-eventing-legacy-l1-1-0/api-ms-win-eventing-legacy-l1-1-0.spec +++ b/dlls/api-ms-win-eventing-legacy-l1-1-0/api-ms-win-eventing-legacy-l1-1-0.spec @@ -6,7 +6,7 @@ @ stdcall FlushTraceW(int64 wstr ptr) advapi32.FlushTraceW @ stdcall -ret64 OpenTraceA(ptr) advapi32.OpenTraceA @ stdcall QueryAllTracesA(ptr long ptr) advapi32.QueryAllTracesA -@ stub QueryTraceA +@ stdcall QueryTraceA(int64 str ptr) advapi32.QueryTraceA @ stdcall QueryTraceW(int64 wstr ptr) advapi32.QueryTraceW @ stdcall StartTraceA(ptr str ptr) advapi32.StartTraceA @ stdcall StopTraceA(int64 str ptr) advapi32.StopTraceA