зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1460022: Part 4 - Update a11y code to reflect new interface for DLL interceptor; r=Jamie
--HG-- extra : rebase_source : ada28438a506edcd4a122ec2c99a742503baa945
This commit is contained in:
Родитель
0ff30867ea
Коммит
63e70eee76
|
@ -95,7 +95,8 @@ Compatibility::IsModuleVersionLessThan(HMODULE aModuleHandle,
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static WindowsDllInterceptor sUser32Interceptor;
|
||||
static decltype(&InSendMessageEx) sInSendMessageExStub = nullptr;
|
||||
static WindowsDllInterceptor::FuncHookType<decltype(&InSendMessageEx)>
|
||||
sInSendMessageExStub;
|
||||
static bool sInSendMessageExHackEnabled = false;
|
||||
static PVOID sVectoredExceptionHandler = nullptr;
|
||||
|
||||
|
@ -267,11 +268,9 @@ Compatibility::Init()
|
|||
if ((sConsumers & (~(UIAUTOMATION | NVDA))) &&
|
||||
BrowserTabsRemoteAutostart()) {
|
||||
sUser32Interceptor.Init("user32.dll");
|
||||
if (!sInSendMessageExStub) {
|
||||
sUser32Interceptor.AddHook("InSendMessageEx",
|
||||
reinterpret_cast<intptr_t>(&InSendMessageExHook),
|
||||
(void**)&sInSendMessageExStub);
|
||||
}
|
||||
sInSendMessageExStub.Set(sUser32Interceptor, "InSendMessageEx",
|
||||
&InSendMessageExHook);
|
||||
|
||||
// The vectored exception handler allows us to catch exceptions ahead of any
|
||||
// SEH handlers.
|
||||
if (!sVectoredExceptionHandler) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче