git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58012
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
searchPath += GetFullSearchPath(szDirPrefix);
searchPath += GetFullSearchPath(szDirPrefix);
- if ( szDirPrefix[LEN_LANG] == wxS('_') )
+ if ( szDirPrefix.length() > LEN_LANG && szDirPrefix[LEN_LANG] == wxS('_') )
{
// also add just base locale name: for things like "fr_BE" (Belgium
// French) we should use fall back on plain "fr" if no Belgium-specific
{
// also add just base locale name: for things like "fr_BE" (Belgium
// French) we should use fall back on plain "fr" if no Belgium-specific