From b13790d7bcd47d1bf1985258cc3ea6c4edb96d1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Sun, 17 Jan 2016 02:20:39 +0100
Subject: combase: Add stub for RoRegisterActivationFactories.

---
 .../api-ms-win-core-winrt-l1-1-0.spec                    |  2 +-
 dlls/combase/combase.spec                                |  2 +-
 dlls/combase/roapi.c                                     | 16 ++++++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec b/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec
index d27130c..32b9474 100644
--- a/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec
+++ b/dlls/api-ms-win-core-winrt-l1-1-0/api-ms-win-core-winrt-l1-1-0.spec
@@ -2,7 +2,7 @@
 @ stdcall RoGetActivationFactory(ptr ptr ptr) combase.RoGetActivationFactory
 @ stdcall RoGetApartmentIdentifier(ptr) combase.RoGetApartmentIdentifier
 @ stdcall RoInitialize(long) combase.RoInitialize
-@ stub RoRegisterActivationFactories
+@ stdcall RoRegisterActivationFactories(ptr ptr long ptr) combase.RoRegisterActivationFactories
 @ stdcall RoRegisterForApartmentShutdown(ptr ptr ptr) combase.RoRegisterForApartmentShutdown
 @ stub RoRevokeActivationFactories
 @ stdcall RoUninitialize() combase.RoUninitialize
diff --git a/dlls/combase/combase.spec b/dlls/combase/combase.spec
index 3a17e4a..7a0decd 100644
--- a/dlls/combase/combase.spec
+++ b/dlls/combase/combase.spec
@@ -262,7 +262,7 @@
 @ stub RoOriginateErrorW
 @ stub RoOriginateLanguageException
 @ stub RoParameterizedTypeExtraGetTypeSignature
-@ stub RoRegisterActivationFactories
+@ stdcall RoRegisterActivationFactories(ptr ptr long ptr)
 @ stdcall RoRegisterForApartmentShutdown(ptr ptr ptr)
 @ stub RoReportCapabilityCheckFailure
 @ stub RoReportFailedDelegate
diff --git a/dlls/combase/roapi.c b/dlls/combase/roapi.c
index 832ec67..e8629cd 100644
--- a/dlls/combase/roapi.c
+++ b/dlls/combase/roapi.c
@@ -247,3 +247,19 @@ HRESULT WINAPI RoGetServerActivatableClasses(HSTRING name, HSTRING **classes, DW
     *count = 0;
     return S_OK;
 }
+
+/***********************************************************************
+ *      RoRegisterActivationFactories (combase.@)
+ */
+HRESULT WINAPI RoRegisterActivationFactories(HSTRING *classes, PFNGETACTIVATIONFACTORY *callbacks,
+                                             UINT32 count, RO_REGISTRATION_COOKIE *cookie)
+{
+    UINT32 i;
+
+    FIXME("(%p, %p, %d, %p): stub\n", classes, callbacks, count, cookie);
+
+    for (i = 0; i < count; i++)
+        FIXME("  %s\n", debugstr_hstring(classes[i]));
+
+    return S_OK;
+}
-- 
2.6.4

