Bug 1406890: Fix detection for Baum Cobra in 64 bit processes. r?MarcoZ
The Compatibility code previously only tested for OsmHooks.dll to detect Baum Cobra.
However, the 64 bit dll is called OsmHks64.dll.
Update the code to test for both so that detection works in 64 bit processes.
Aside from telemetry, this is also needed to ensure that the InSendMessageEx hook is used to work around RPC_E_CANTCALLOUT_ININPUTSYNCCALL.
MozReview-Commit-ID: FjliZybHrZH
--- a/accessible/windows/msaa/Compatibility.cpp
+++ b/accessible/windows/msaa/Compatibility.cpp
@@ -178,17 +178,17 @@ Compatibility::Init()
sConsumers |= DOLPHIN;
if (::GetModuleHandleW(L"STSA32"))
sConsumers |= SEROTEK;
if (::GetModuleHandleW(L"nvdaHelperRemote"))
sConsumers |= NVDA;
- if (::GetModuleHandleW(L"OsmHooks"))
+ if (::GetModuleHandleW(L"OsmHooks") || ::GetModuleHandleW(L"OsmHks64"))
sConsumers |= COBRA;
if (::GetModuleHandleW(L"WebFinderRemote"))
sConsumers |= ZOOMTEXT;
if (::GetModuleHandleW(L"Kazahook"))
sConsumers |= KAZAGURU;