Skip to content

Commit

Permalink
Explorerframe fixes for Win11: fix hook variable names 2
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprinusCarpio committed Aug 15, 2024
1 parent 6d69a29 commit dc84d00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mods/explorerframe-fixes-for-win11-22h2plus.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ BOOL Wh_ModInit()
return FALSE;
}

WindhawkUtils::SYMBOL_HOOK explorerframe_hooks[] =
WindhawkUtils::SYMBOL_HOOK explorerframe_dll_hooks[] =
{
{ {
L"private: virtual __int64 __cdecl CExplorerFrame::v_WndProc(struct HWND__ *,unsigned int,unsigned __int64,__int64)"
Expand All @@ -222,7 +222,7 @@ BOOL Wh_ModInit()
}
};

if (!WindhawkUtils::HookSymbols(hExplorerFrame, explorerframe_hooks, 2))
if (!WindhawkUtils::HookSymbols(hExplorerFrame, explorerframe_dll_hooks, 2))
{
Wh_Log(L"Failed install explorerframe hooks");
return FALSE;
Expand All @@ -236,7 +236,7 @@ BOOL Wh_ModInit()
return FALSE;
}

WindhawkUtils::SYMBOL_HOOK shell32_hooks[] =
WindhawkUtils::SYMBOL_HOOK shell32_dll_hooks[] =
{
{ {
L"public: virtual long __cdecl CListViewHost::CreateControl(struct HWND__ *,struct IListControlHost *,struct IViewSettings *)"
Expand All @@ -248,7 +248,7 @@ BOOL Wh_ModInit()

};

if (!WindhawkUtils::HookSymbols(hShell32, shell32_hooks, 1))
if (!WindhawkUtils::HookSymbols(hShell32, shell32_dll_hooks, 1))
{
Wh_Log(L"Failed to hook CListViewHost::CreateControl");
return FALSE;
Expand Down

0 comments on commit dc84d00

Please sign in to comment.