From bfc4c320ec3f4b05f801847bb21e414382f72447 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 16 Feb 2015 12:38:00 +0100 Subject: [PATCH] Bug 1102297 - mingw wchar_t/char16_t mismatch fixup. --- widget/windows/GfxInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/windows/GfxInfo.cpp b/widget/windows/GfxInfo.cpp index 021e6aaf5f52..062070fe9e36 100644 --- a/widget/windows/GfxInfo.cpp +++ b/widget/windows/GfxInfo.cpp @@ -823,7 +823,7 @@ GfxInfo::GetCountryCode() } // Now get the string for real mCountryCode.SetLength(numChars); - numChars = GetGeoInfoW(geoid, GEO_ISO2, mCountryCode.BeginWriting(), + numChars = GetGeoInfoW(geoid, GEO_ISO2, wwc(mCountryCode.BeginWriting()), mCountryCode.Length(), 0); if (numChars) { // numChars includes null terminator