]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
GTK2: gtk_window_set_policy -> gtk_window_set_resizable. Slight change for resizable...
[wxWidgets.git] / src / common / fileconf.cpp
index c70e7e5a5c457436e1f8479914ef157d59aa6928..70676fa8edd70456ff60d5878440da68bc7709e1 100644 (file)
@@ -2030,8 +2030,11 @@ static wxString FilterInEntryName(const wxString& str)
   strResult.Alloc(str.Len());
 
   for ( const wxChar *pc = str.c_str(); *pc != '\0'; pc++ ) {
-    if ( *pc == wxT('\\') )
-      pc++;
+    if ( *pc == wxT('\\') ) {
+      // we need to test it here or we'd skip past the NUL in the loop line
+      if ( *++pc == _T('\0') )
+        break;
+    }
 
     strResult += *pc;
   }