]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/translation.cpp
Fix crash in wxMSW wxProgressDialog without wxPD_APP_MODAL style.
[wxWidgets.git] / src / common / translation.cpp
index 83b61312942e2f265b50bbb56c6105cdfe7db261..c6bb8440e0b53a86a3996d833ea0620bf7e811a2 100644 (file)
@@ -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<LONG_PTR>(&data)) )
     {