Skip to content

armgit / WacOS

Public Imported from GitHub
0

A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.

Rust

Issue #170: Chrome 158 row in the tab-row hook table (measured in the Rust port)

Eternity070628726f75ccc25d
diff --git a/docs/registro-mudancas.txt b/docs/registro-mudancas.txt
index 90bb6df..d96f9fb 100644
--- a/docs/registro-mudancas.txt
+++ b/docs/registro-mudancas.txt
@@ -1992,3 +1992,7 @@ Compilado (tudo), instalado, Shell e reserva do Finder reiniciados às 23:07 sem
- PR #178 (Jop3r): bateria dos dispositivos Bluetooth na barra de menus (desligado por padrão).
Compilado (Shell e Ajustes). NÃO instalado nem testado na tela: o Shell em Rust estava rodando (teste da sessão do Rust).
DESFAZER: reverter o commit e compilar.
+[2026-11-27 14:38] Issue #170: linha do Chrome 158.0.8127.37 na tabela g_ganchos (macjanela.cpp) do gancho das abas
+ (tabela 0x103506d8, slot 123, função 0x3706430, mesma assinatura da 157), medida pela sessão do Rust sem o .pdb e
+ testada lá (botões do Mac no Chrome, nenhum programa caiu). Compilado (DLLs das janelas); a DLL vai na próxima build.
+ DESFAZER: apagar a linha do Chrome 158 em g_ganchos e compilar (build.cmd janelas).
diff --git a/src/janelas/macjanela.cpp b/src/janelas/macjanela.cpp
index 3370942..b8a4d80 100644
--- a/src/janelas/macjanela.cpp
+++ b/src/janelas/macjanela.cpp
@@ -2286,6 +2286,9 @@ struct GanchoChromium { const wchar_t* dll; DWORD vt; int slot; DWORD fn; BYTE s
static const GanchoChromium g_ganchos[] = {
// Chrome 157.0.8103.79 (chrome.dll.pdb 57DD8BAFFD89996F4C4C44205044422E1): vftable 0x100845a0, slot 123
{ L"chrome.dll", 0x100845a0, 123, 0x371cb40, { 0x48, 0x89, 0xd0, 0x0f, 0x57, 0xc0, 0x0f, 0x11, 0x42, 0x20, 0x0f, 0x11, 0x42, 0x10, 0x0f, 0x10 } },
+ // Chrome 158.0.8127.37 (issue #170), medido sem o .pdb pela sessão do Rust (27/11/2026): a única função do chrome.dll
+ // com os 16 bytes da 157 está em 0x3706430 e o único ponteiro para ela fica na tabela em 0x103506d8, slot 123
+ { L"chrome.dll", 0x103506d8, 123, 0x3706430, { 0x48, 0x89, 0xd0, 0x0f, 0x57, 0xc0, 0x0f, 0x11, 0x42, 0x20, 0x0f, 0x11, 0x42, 0x10, 0x0f, 0x10 } },
};
using LayoutParamsFn = void* (__fastcall*)(void* self, void* out);
static LayoutParamsFn g_lpOrig;