From 493d757c594d0eccce55e29fc6e5ef574fc7446f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Sun, 17 Jan 2016 01:47:08 +0100
Subject: combase: Add stub for RoGetApartmentIdentifier.

---
 .../api-ms-win-core-winrt-l1-1-0.spec                      |  2 +-
 dlls/combase/combase.spec                                  |  2 +-
 dlls/combase/roapi.c                                       | 14 ++++++++++++++
 3 files changed, 16 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 978c3dc..88139fb 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
@@ -1,6 +1,6 @@
 @ stdcall RoActivateInstance(ptr ptr) combase.RoActivateInstance
 @ stdcall RoGetActivationFactory(ptr ptr ptr) combase.RoGetActivationFactory
-@ stub RoGetApartmentIdentifier
+@ stdcall RoGetApartmentIdentifier(ptr) combase.RoGetApartmentIdentifier
 @ stdcall RoInitialize(long) combase.RoInitialize
 @ stub RoRegisterActivationFactories
 @ stub RoRegisterForApartmentShutdown
diff --git a/dlls/combase/combase.spec b/dlls/combase/combase.spec
index 9b1ab30..3bf0bf2 100644
--- a/dlls/combase/combase.spec
+++ b/dlls/combase/combase.spec
@@ -250,7 +250,7 @@
 @ stub RoGetActivatableClassRegistration
 @ stdcall RoGetActivationFactory(ptr ptr ptr)
 @ stub RoGetAgileReference
-@ stub RoGetApartmentIdentifier
+@ stdcall RoGetApartmentIdentifier(ptr)
 @ stub RoGetErrorReportingFlags
 @ stub RoGetMatchingRestrictedErrorInfo
 @ stub RoGetParameterizedTypeInstanceIID
diff --git a/dlls/combase/roapi.c b/dlls/combase/roapi.c
index 695b6fd..cd545f1 100644
--- a/dlls/combase/roapi.c
+++ b/dlls/combase/roapi.c
@@ -204,3 +204,17 @@ HRESULT WINAPI RoActivateInstance(HSTRING classid, IInspectable **instance)
 
     return hr;
 }
+
+/***********************************************************************
+ *      RoGetApartmentIdentifier (combase.@)
+ */
+HRESULT WINAPI RoGetApartmentIdentifier(UINT64 *identifier)
+{
+    FIXME("(%p): stub\n", identifier);
+
+    if (!identifier)
+        return E_INVALIDARG;
+
+    *identifier = 0xdeadbeef;
+    return S_OK;
+}
-- 
2.6.4

