GetForCurrentThread_Hook is probably wrong.

This commit is contained in:
Tyler Jaacks 2024-10-08 17:13:14 -05:00
parent 1811fbd2de
commit 75201d2c5b

View File

@ -32,7 +32,11 @@ void* GetForCurrentThread = nullptr;
inline HRESULT STDMETHODCALLTYPE GetForCurrentThread_Hook(CoreWindow** window)
{
return TrueGetForCurrentThread(window);
ComPtr<CoreWindowX> coreWindowX = Make<CoreWindowX>();
coreWindowX.CopyTo(window);
return S_OK();
}
inline HRESULT WINAPI RoGetActivationFactory_Hook(HSTRING classId, REFIID iid, void** factory)