[PATCH 3/3] combase: Add RoSetErrorReportingFlags() stub.

Matteo Bruni mbruni at codeweavers.com
Wed Mar 2 07:05:32 CST 2022


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
I wrote this patch a while ago, before seeing Alistair's on the
ML. Since his version stalled I guess I might as well send mine...

 dlls/combase/combase.spec |  2 +-
 dlls/combase/roapi.c      |  9 +++++++++
 include/roerrorapi.h      | 10 ++++++++++
 3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/dlls/combase/combase.spec b/dlls/combase/combase.spec
index c2fafacdea3..b3f4d25b42c 100644
--- a/dlls/combase/combase.spec
+++ b/dlls/combase/combase.spec
@@ -312,7 +312,7 @@
 @ stub RoReportUnhandledError
 @ stub RoResolveRestrictedErrorInfoReference
 @ stub RoRevokeActivationFactories
-@ stub RoSetErrorReportingFlags
+@ stdcall RoSetErrorReportingFlags(long)
 @ stub RoTransformError
 @ stub RoTransformErrorW
 @ stdcall RoUninitialize()
diff --git a/dlls/combase/roapi.c b/dlls/combase/roapi.c
index 0a17f02b776..46adf088247 100644
--- a/dlls/combase/roapi.c
+++ b/dlls/combase/roapi.c
@@ -299,6 +299,15 @@ BOOL WINAPI RoOriginateError(HRESULT error, HSTRING message)
     return FALSE;
 }
 
+/***********************************************************************
+ *      RoSetErrorReportingFlags (combase.@)
+ */
+HRESULT WINAPI RoSetErrorReportingFlags(UINT32 flags)
+{
+    FIXME("(%08x): stub\n", flags);
+    return S_OK;
+}
+
 /***********************************************************************
  *      CleanupTlsOleState (combase.@)
  */
diff --git a/include/roerrorapi.h b/include/roerrorapi.h
index 454e1a6c2e9..741347455b1 100644
--- a/include/roerrorapi.h
+++ b/include/roerrorapi.h
@@ -23,8 +23,18 @@
 #include <restrictederrorinfo.h>
 #include <rpc.h>
 
+typedef enum
+{
+    RO_ERROR_REPORTING_NONE                 = 0x0,
+    RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS   = 0x1,
+    RO_ERROR_REPORTING_FORCEEXCEPTIONS      = 0x2,
+    RO_ERROR_REPORTING_USESETERRORINFO      = 0x4,
+    RO_ERROR_REPORTING_SUPPRESSSETERRORINFO = 0x8,
+} RO_ERROR_REPORTING_FLAGS;
+
 HRESULT WINAPI GetRestrictedErrorInfo(IRestrictedErrorInfo **info);
 BOOL    WINAPI RoOriginateError(HRESULT error, HSTRING message);
 BOOL    WINAPI RoOriginateLanguageException(HRESULT error, HSTRING message, IUnknown *language_exception);
+HRESULT WINAPI RoSetErrorReportingFlags(UINT32 flags);
 
 #endif /* _ROERROR_H */
-- 
2.34.1




More information about the wine-devel mailing list