advapi32: return success in RegisterTraceGuids (try 2)

Austin English austinenglish at gmail.com
Tue May 10 14:59:10 CDT 2011


Try2: Add a note to the fixme that we're faking success.

Fixes http://bugs.winehq.org/show_bug.cgi?id=26992

I have no way to know if it will affect the original app that this was
added for, there's no bug/app mentioned:
http://www.winehq.org/pipermail/wine-patches/2005-May/017406.html

but this does help at least one app :).

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c
index d76e0de..db26233 100644
--- a/dlls/advapi32/eventlog.c
+++ b/dlls/advapi32/eventlog.c
@@ -750,10 +750,10 @@ ULONG WINAPI RegisterTraceGuidsW( WMIDPREQUEST RequestAddress,
                 PTRACE_GUID_REGISTRATION TraceGuidReg, LPCWSTR MofImagePath,
                 LPCWSTR MofResourceName, PTRACEHANDLE RegistrationHandle )
 {
-    FIXME("(%p, %p, %s, %u, %p, %s, %s, %p,)\n", RequestAddress, RequestContext,
+    FIXME("(%p, %p, %s, %u, %p, %s, %s, %p,): stub, faking success!\n", RequestAddress, RequestContext,
           debugstr_guid(ControlGuid), GuidCount, TraceGuidReg, debugstr_w(MofImagePath),
           debugstr_w(MofResourceName), RegistrationHandle);
-    return ERROR_CALL_NOT_IMPLEMENTED;
+    return ERROR_SUCCESS;
 }
 
 /******************************************************************************
@@ -769,10 +769,10 @@ ULONG WINAPI RegisterTraceGuidsA( WMIDPREQUEST RequestAddress,
                 PTRACE_GUID_REGISTRATION TraceGuidReg, LPCSTR MofImagePath,
                 LPCSTR MofResourceName, PTRACEHANDLE RegistrationHandle )
 {
-    FIXME("(%p, %p, %s, %u, %p, %s, %s, %p,)\n", RequestAddress, RequestContext,
+    FIXME("(%p, %p, %s, %u, %p, %s, %s, %p,): stub, faking success!\n", RequestAddress, RequestContext,
           debugstr_guid(ControlGuid), GuidCount, TraceGuidReg, debugstr_a(MofImagePath),
           debugstr_a(MofResourceName), RegistrationHandle);
-    return ERROR_CALL_NOT_IMPLEMENTED;
+    return ERROR_SUCCESS;
 }
 
 /******************************************************************************


More information about the wine-patches mailing list