Skip to content

Commit 1aaae47

Browse files
refactor: rename common hook to install_NtUserTrackPopupMenuEx_hook for clarity
1 parent 2bcacc3 commit 1aaae47

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/shell/contextmenu/hooks.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ mb_shell::track_popup_menu(mb_shell::menu menu, int x, int y,
8181
return selected_menu;
8282
}
8383

84-
void mb_shell::context_menu_hooks::install_common_hook() {
84+
void mb_shell::context_menu_hooks::install_NtUserTrackPopupMenuEx_hook() {
8585
auto proc = blook::Process::self();
8686
auto win32u = proc->module("win32u.dll");
8787
auto user32 = proc->module("user32.dll");

src/shell/contextmenu/hooks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace mb_shell {
66
struct context_menu_hooks {
77
static std::atomic_int block_js_reload;
8-
static void install_common_hook();
8+
static void install_NtUserTrackPopupMenuEx_hook();
99
static void install_SHCreateDefaultContextMenu_hook();
1010
}; // namespace context_menu_hooks
1111
} // namespace mb_shell

src/shell/entry.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,12 @@ void main() {
121121
if (filename == "explorer.exe" || filename == "360filebrowser64.exe") {
122122
init_render_global();
123123
res_string_loader::init();
124-
context_menu_hooks::install_common_hook();
124+
context_menu_hooks::install_NtUserTrackPopupMenuEx_hook();
125125
fix_win11_menu::install();
126126
}
127127

128128
if (filename == "onecommander.exe") {
129129
init_render_global();
130-
context_menu_hooks::install_common_hook();
131130
context_menu_hooks::install_SHCreateDefaultContextMenu_hook();
132131
res_string_loader::init();
133132
}

0 commit comments

Comments
 (0)