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 ebad23c206
commit 428e13ecf5

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;