Bug 1102297 - mingw wchar_t/char16_t mismatch fixup.

This commit is contained in:
Jacek Caban 2015-02-16 12:38:00 +01:00
parent f567706ef1
commit bfc4c320ec

View File

@ -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