[PATCH] combase: Add RoSetErrorReportingFlags stub
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Wed Feb 23 00:44:34 CST 2022
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
.../api-ms-win-core-winrt-error-l1-1-0.spec | 2 +-
.../api-ms-win-core-winrt-error-l1-1-1.spec | 2 +-
dlls/combase/combase.spec | 2 +-
dlls/combase/roapi.c | 10 ++++++++++
include/roerrorapi.h | 10 ++++++++++
5 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/dlls/api-ms-win-core-winrt-error-l1-1-0/api-ms-win-core-winrt-error-l1-1-0.spec b/dlls/api-ms-win-core-winrt-error-l1-1-0/api-ms-win-core-winrt-error-l1-1-0.spec
index cf410136631..6505d8b86c4 100644
--- a/dlls/api-ms-win-core-winrt-error-l1-1-0/api-ms-win-core-winrt-error-l1-1-0.spec
+++ b/dlls/api-ms-win-core-winrt-error-l1-1-0/api-ms-win-core-winrt-error-l1-1-0.spec
@@ -5,7 +5,7 @@
@ stdcall RoOriginateError(long ptr) combase.RoOriginateError
@ stub RoOriginateErrorW
@ stub RoResolveRestrictedErrorInfoReference
-@ stub RoSetErrorReportingFlags
+@ stdcall RoSetErrorReportingFlags(long) combase.RoSetErrorReportingFlags
@ stub RoTransformError
@ stub RoTransformErrorW
@ stub SetRestrictedErrorInfo
diff --git a/dlls/api-ms-win-core-winrt-error-l1-1-1/api-ms-win-core-winrt-error-l1-1-1.spec b/dlls/api-ms-win-core-winrt-error-l1-1-1/api-ms-win-core-winrt-error-l1-1-1.spec
index d969540e94d..856a580db70 100644
--- a/dlls/api-ms-win-core-winrt-error-l1-1-1/api-ms-win-core-winrt-error-l1-1-1.spec
+++ b/dlls/api-ms-win-core-winrt-error-l1-1-1/api-ms-win-core-winrt-error-l1-1-1.spec
@@ -13,7 +13,7 @@
@ stub RoReportFailedDelegate
@ stub RoReportUnhandledError
@ stub RoResolveRestrictedErrorInfoReference
-@ stub RoSetErrorReportingFlags
+@ stdcall RoSetErrorReportingFlags(long) combase.RoSetErrorReportingFlags
@ stub RoTransformError
@ stub RoTransformErrorW
@ stub SetRestrictedErrorInfo
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..6dd714a8275 100644
--- a/dlls/combase/roapi.c
+++ b/dlls/combase/roapi.c
@@ -316,3 +316,13 @@ HRESULT WINAPI DllGetActivationFactory(HSTRING classid, IActivationFactory **fac
return REGDB_E_CLASSNOTREG;
}
+
+/***********************************************************************
+ * RoSetErrorReportingFlags (combase.@)
+ */
+HRESULT WINAPI RoSetErrorReportingFlags(UINT32 flags)
+{
+ FIXME("%d\n", flags);
+ return S_OK;
+}
+
diff --git a/include/roerrorapi.h b/include/roerrorapi.h
index 454e1a6c2e9..b7d2322d1ae 100644
--- a/include/roerrorapi.h
+++ b/include/roerrorapi.h
@@ -23,8 +23,18 @@
#include <restrictederrorinfo.h>
#include <rpc.h>
+typedef enum
+{
+ None,
+ SuppressExceptions,
+ ForceExceptions,
+ UseSetErrorInfo,
+ SuppressSetErrorInfo
+} RoErrorReportingFlags;
+
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