From 15b41c91fd4c9f484173e6ec7dec2e8bd69a4fb3 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 2 Sep 2021 05:25:34 +0300 Subject: [PATCH] Corrected function signature --- ExplorerPatcher/dllmain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 9e7c9a0..42e3e29 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -506,14 +506,14 @@ static BOOL(*TrackPopupMenuFunc)( static INT64(*ContextMenuPresenter_DoContextMenuFunc)( - char* _this, + void* _this, INT64 a2, INT a3, void* a4 ); INT64 ContextMenuPresenter_DoContextMenuHook( - char* _this, + void* _this, INT64 a2, INT a3, void* a4 @@ -3271,7 +3271,7 @@ __declspec(dllexport) DWORD WINAPI main( LoadLibraryW(L"Windows.UI.FileExplorer.dll"); HANDLE hWindowsUIFileExplorer = GetModuleHandle(L"Windows.UI.FileExplorer.dll"); - ContextMenuPresenter_DoContextMenuFunc = (INT64(*)(void*)) + ContextMenuPresenter_DoContextMenuFunc = (INT64(*)(void*, INT64, INT, void*)) ((uintptr_t)hWindowsUIFileExplorer + symbols_PTRS.windowsuifileexplorer_PTRS[0]); UINT bAllowImmersiveContextMenus = VnGetUInt( L"General",