fixed: added RoGetActivationFactory

This commit is contained in:
CT5
2026-01-29 19:30:00 +11:00
parent 4e5403d332
commit 6b3e4997d5
2 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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)