]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
Prevent possible divide by zero problem
[wxWidgets.git] / src / generic / filedlgg.cpp
index c4445150ae49715f21bf8c5ed44490f9f03faad7..71eaa00fef32a706829503199541a3168d8bff2d 100644 (file)
     #endif
 #endif
 
+#ifdef __WINDOWS__
+    #include "wx/msw/wrapwin.h"
+    #include "wx/msw/mslu.h"
+#endif
+
 #ifdef __WATCOMC__
     #include <direct.h>
 #endif
@@ -873,7 +878,7 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
     wxArrayString wildDescriptions, wildFilters;
     if ( !ParseWildcard(m_wildCard, wildDescriptions, wildFilters) )
     {
-        wxFAIL_MSG( wxT("Wrong file type descripition") );
+        wxFAIL_MSG( wxT("Wrong file type description") );
     }
 
     // layout
@@ -1204,8 +1209,7 @@ void wxGenericFileDialog::HandleAction( const wxString &fn )
                 wxFileExists( filename ) )
     {
         wxString msg;
-        msg.Printf( _("File '%s' already exists, do you really want to "
-                     "overwrite it?"), filename.c_str() );
+        msg.Printf( _("File '%s' already exists, do you really want to overwrite it?"), filename.c_str() );
 
         if (wxMessageBox(msg, _("Confirm"), wxYES_NO) != wxYES)
             return;