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

--HG--
extra : rebase_source : a4b53abf86206dd8ecb4965a6ce1ba31545f0197
This commit is contained in:
James Teh 2017-11-14 09:49:05 +10:00
Родитель f733aff224
Коммит 2603668efb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -183,7 +183,7 @@ Compatibility::Init()
if (::GetModuleHandleW(L"nvdaHelperRemote"))
sConsumers |= NVDA;
if (::GetModuleHandleW(L"OsmHooks"))
if (::GetModuleHandleW(L"OsmHooks") || ::GetModuleHandleW(L"OsmHks64"))
sConsumers |= COBRA;
if (::GetModuleHandleW(L"WebFinderRemote"))