Bug 286355 - Fixed char16_t/wchar_t mismatch for mingw.

--HG--
extra : rebase_source : 285d1e36261ceab4cdf1be09024c4b7dbf907fd9
This commit is contained in:
Jacek Caban 2014-09-02 11:10:12 +02:00
parent cd7ba96e9d
commit 0193598bf5

View File

@ -82,7 +82,7 @@ ProfileUnlockerWin::Init()
return NS_ERROR_ILLEGAL_VALUE;
}
nsModuleHandle module(::LoadLibraryW(MOZ_UTF16("Rstrtmgr.dll")));
nsModuleHandle module(::LoadLibraryW(L"Rstrtmgr.dll"));
if (!module) {
return NS_ERROR_NOT_AVAILABLE;
}
@ -110,7 +110,7 @@ ProfileUnlockerWin::Init()
mQueryFullProcessImageName =
reinterpret_cast<QUERYFULLPROCESSIMAGENAME>(::GetProcAddress(
::GetModuleHandleW(MOZ_UTF16("kernel32.dll")),
::GetModuleHandleW(L"kernel32.dll"),
"QueryFullProcessImageNameW"));
if (!mQueryFullProcessImageName) {
return NS_ERROR_NOT_AVAILABLE;