Bug 1138070 - Don't use GetModuleHandleA on RtlImageNtHeader. r=dmajor, a=sledru
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Wed, 04 Mar 2015 11:09:04 +1300
changeset 250232 84a2cfba8deb
parent 250231 cdd3d780401e
child 250233 2f6284a0d529
push id4523
push userryanvm@gmail.com
push date2015-03-04 17:35 +0000
treeherdermozilla-beta@729cf69ef43f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmajor, sledru
bugs1138070
milestone37.0
Bug 1138070 - Don't use GetModuleHandleA on RtlImageNtHeader. r=dmajor, a=sledru
toolkit/xre/WindowsCrtPatch.h
--- a/toolkit/xre/WindowsCrtPatch.h
+++ b/toolkit/xre/WindowsCrtPatch.h
@@ -100,17 +100,17 @@ PatchModuleImports(HMODULE module, PIMAG
   }
 }
 
 PIMAGE_NT_HEADERS NTAPI
 patched_RtlImageNtHeader(HMODULE module)
 {
   PIMAGE_NT_HEADERS headers = stub_RtlImageNtHeader(module);
 
-  if (module == GetModuleHandleA("msvcr120.dll")) {
+  if (module == GetModuleHandleW(L"msvcr120.dll")) {
     PatchModuleImports(module, headers);
   }
 
   return headers;
 }
 
 // Non-inline to make the asserts stand out
 MOZ_NEVER_INLINE void