mirror of
https://codeberg.org/WinDurango/WinDurango.git
synced 2026-04-18 02:23:34 -04:00
fixed: added RoGetActivationFactory
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <winrt/windows.storage.provider.h>
|
||||
#include <wrl/client.h>
|
||||
#include <detours.h>
|
||||
#include "CurrentApp.h"
|
||||
|
||||
typedef int32_t (__stdcall *GetActivationFactory_t)(HSTRING classId, IActivationFactory** factory);
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ inline HRESULT WINAPI EraRoGetActivationFactory(HSTRING classId, REFIID iid, voi
|
||||
|
||||
winDurango->log.Log("WinDurango::KernelX", "EraRoGetActivationFactory: {}", rss);
|
||||
|
||||
if (IsClassName(classId, "Windows.ApplicationModel.Store.CurrentApp"))
|
||||
if (rss == std::string("Windows.ApplicationModel.Store.CurrentApp"))
|
||||
{
|
||||
HRESULT hr = RoGetActivationFactory(classId, iid, factory);
|
||||
|
||||
@@ -183,7 +183,7 @@ inline HRESULT WINAPI EraRoGetActivationFactory(HSTRING classId, REFIID iid, voi
|
||||
return i_factory.CopyTo(iid, factory);
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
return RoGetActivationFactory(classId, iid, factory);
|
||||
}
|
||||
|
||||
HRESULT WINAPI GetActivationFactoryRedirect(PCWSTR str, REFIID riid, void **ppFactory)
|
||||
|
||||
Reference in New Issue
Block a user