X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c83615f0741e70d879fff60fb5a0bada35ac009..a5655d37db9baabce654849fd66173f95f74e230:/src/common/translation.cpp diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 83b6131294..c6bb8440e0 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -1741,6 +1741,8 @@ wxArrayString wxFileTranslationsLoader::GetAvailableTranslations(const wxString& i != prefixes.end(); ++i ) { + if (i->length() == 0) + continue; wxDir dir; if ( !dir.Open(*i) ) continue; @@ -1839,7 +1841,7 @@ wxArrayString wxResourceTranslationsLoader::GetAvailableTranslations(const wxStr data.prefix.MakeLower(); // resource names are case insensitive if ( !EnumResourceNames(GetModule(), - GetResourceType(), + GetResourceType().t_str(), EnumTranslations, reinterpret_cast(&data)) ) {