From 68d8f6410f63d141262edf24779dfcb700047478 Mon Sep 17 00:00:00 2001 From: GregoryMorse Date: Sat, 7 Dec 2013 15:40:30 +0800 Subject: [PATCH] Update system.cpp Cleaned up to use the preferred namespace code. This can be further simplified by using the HString/HStringReference classes from wrl\wrappers\corewrappers.h --- modules/core/src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index eee06e2905..7208fbcb3f 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -107,7 +107,7 @@ std::wstring GetTempPathWinRT() if (FAILED(WindowsCreateStringReference(RuntimeClass_Windows_Storage_ApplicationData, (UINT32)wcslen(RuntimeClass_Windows_Storage_ApplicationData), &hstrHead, &str))) return wstr; - if (FAILED(RoGetActivationFactory(str, IID_PPV_ARGS(appdataFactory.ReleaseAndGetAddressOf())))) + if (FAILED(Windows::Foundation::GetActivationFactory(str, appdataFactory.ReleaseAndGetAddressOf()))) return wstr; if (FAILED(appdataFactory->get_Current(appdataRef.ReleaseAndGetAddressOf()))) return wstr;