applying 1960600 (avoid dereferencing lc if it hasn't been set)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2332,14 +2332,16 @@ void wxLocale::AddCatalogLookupPathPrefix(const wxString& prefix)
|
|||||||
break ;
|
break ;
|
||||||
default :
|
default :
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
for ( i = 0; i < count; i++ )
|
if ( !lc )
|
||||||
{
|
return wxLANGUAGE_UNKNOWN;
|
||||||
if ( ms_languagesDB->Item(i).CanonicalName == lc )
|
for ( i = 0; i < count; i++ )
|
||||||
{
|
{
|
||||||
break;
|
if ( ms_languagesDB->Item(i).CanonicalName == lc )
|
||||||
}
|
{
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__)
|
||||||
LCID lcid = GetUserDefaultLCID();
|
LCID lcid = GetUserDefaultLCID();
|
||||||
|
|||||||
Reference in New Issue
Block a user