Bug 1617188 - Do not call GetVersion(detoured.dll) if nvd3d9wrapx.dll is loaded. r=gerald

We added a workaround to skip `LoadLibraryEx` avoid NVIDIA's crash (bug 1607574),
however we still hit the same crash via the call to `xul!GetVersion`.  This patch
removes that call, and put an empty string as the version of detoured.dll instead.

Differential Revision: https://phabricator.services.mozilla.com/D63735

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Toshihito Kikuchi 2020-02-22 17:29:26 +00:00
parent b224a7461c
commit 3e8d050c21

View File

@ -168,7 +168,7 @@ SharedLibraryInfo SharedLibraryInfo::GetInfoForSelf() {
0, // DLLs are always mapped at offset 0 on Windows
NS_LITERAL_CSTRING("000000000000000000000000000000000"),
moduleNameStr, modulePathStr, pdbNameStr, pdbNameStr,
GetVersion(modulePath), "");
NS_LITERAL_CSTRING(""), "");
sharedLibraryInfo.AddSharedLibrary(shlib);
continue;
}