mirror of
https://github.com/WinDurango-project/WinDurango.git
synced 2024-11-26 20:50:35 +00:00
GetForCurrentThread_Hook is probably wrong.
This commit is contained in:
parent
1811fbd2de
commit
75201d2c5b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user