]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/filedlg.cpp
fixed the vsprintf() problem once and for all
[wxWidgets.git] / src / msw / filedlg.cpp
index 78b34377507b1285480e4a6c5874c6d5a765daa7..f5cc104122b75b58ebc8c4f59f9309cd746572bd 100644 (file)
@@ -271,7 +271,8 @@ int wxFileDialog::ShowModal(void)
                 extension = extension + strlen( extension ) +1;
             }
 
-            if (  (extension = strrchr( extension, '.' ))   // != "blabla" 
+            extension = strrchr( extension, '.' );
+            if (  extension                                 // != "blabla" 
                   && !strrchr( extension, '*' )             // != "blabla.*"
                   && !strrchr( extension, '?' )             // != "blabla.?"
                   && extension[1]                           // != "blabla."