From 7adec4b2ebc1d448dec0fdf7e9360e9c7191316d Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 2 Sep 2021 05:23:03 +0300 Subject: [PATCH] Corrected function signature --- ExplorerPatcher/dllmain.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index a4243e1..9e7c9a0 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -505,14 +505,14 @@ static BOOL(*TrackPopupMenuFunc)( -static char(*ContextMenuPresenter_DoContextMenuFunc)( +static INT64(*ContextMenuPresenter_DoContextMenuFunc)( char* _this, INT64 a2, INT a3, void* a4 ); -char ContextMenuPresenter_DoContextMenuHook( +INT64 ContextMenuPresenter_DoContextMenuHook( char* _this, INT64 a2, INT a3, @@ -520,13 +520,12 @@ char ContextMenuPresenter_DoContextMenuHook( ) { *(((char*)_this + 156)) = 0; - ContextMenuPresenter_DoContextMenuFunc( + return ContextMenuPresenter_DoContextMenuFunc( _this, a2, a3, a4 ); - return 1; } @@ -3272,7 +3271,7 @@ __declspec(dllexport) DWORD WINAPI main( LoadLibraryW(L"Windows.UI.FileExplorer.dll"); HANDLE hWindowsUIFileExplorer = GetModuleHandle(L"Windows.UI.FileExplorer.dll"); - ContextMenuPresenter_DoContextMenuFunc = (char(*)(void*)) + ContextMenuPresenter_DoContextMenuFunc = (INT64(*)(void*)) ((uintptr_t)hWindowsUIFileExplorer + symbols_PTRS.windowsuifileexplorer_PTRS[0]); UINT bAllowImmersiveContextMenus = VnGetUInt( L"General",