mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:37:12 +00:00
[RAPPS] Fix the locale fix
This commit is contained in:
parent
cf9ba2b9ce
commit
86572f1f69
1 changed files with 4 additions and 1 deletions
|
@ -336,7 +336,10 @@ VOID CConfigParser::CacheINILocale()
|
||||||
m_szCachedINISectionLocale = L"Section." + m_szLocaleID;
|
m_szCachedINISectionLocale = L"Section." + m_szLocaleID;
|
||||||
|
|
||||||
// turn "Section.0c0a" into "Section.0a", keeping just the neutral lang part
|
// turn "Section.0c0a" into "Section.0a", keeping just the neutral lang part
|
||||||
m_szCachedINISectionLocaleNeutral = m_szCachedINISectionLocale.Left(m_szCachedINISectionLocale.GetLength() - 2);
|
if (m_szLocaleID.GetLength() >= 2)
|
||||||
|
m_szCachedINISectionLocaleNeutral = L"Section." + m_szLocaleID.Right(2);
|
||||||
|
else
|
||||||
|
m_szCachedINISectionLocaleNeutral = m_szCachedINISectionLocale;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CConfigParser::GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString)
|
BOOL CConfigParser::GetString(const ATL::CStringW& KeyName, ATL::CStringW& ResultString)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue