Skip to content

Commit f081a92

Browse files
fix(shell): win11 menu patch
close #177
1 parent 03d9c59 commit f081a92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/shell/fix_win11_menu.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ void mb_shell::fix_win11_menu::install() {
131131
next->getOperand(0).template holds<zasm::Mem>()) {
132132
insn.ptr()
133133
.reassembly([](auto a) {
134-
a.mov(zasm::x86::ecx, 0x10);
135-
a.mov(zasm::x86::eax, 0xffff);
134+
a.mov(zasm::x86::eax, 0x0);
135+
a.bts(zasm::x86::edi, 0x8);
136+
a.nop();
136137
a.nop();
137138
a.nop();
138139
})

0 commit comments

Comments
 (0)