]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
Made wxBORDER_THEME the same as wxBORDER_DEFAULT
[wxWidgets.git] / src / common / filefn.cpp
index 7e806a16cc5822eb37f6ce6ce7ae716d0393e4d0..c2614443c749841e77ff7e9514c5d975f3af962e 100644 (file)
@@ -33,6 +33,7 @@
     #include "wx/crt.h"
 #endif
 
+#include "wx/dynarray.h"
 #include "wx/file.h"
 #include "wx/filename.h"
 #include "wx/dir.h"
@@ -1645,7 +1646,7 @@ bool wxSetWorkingDirectory(const wxString& d)
 #if defined(__OS2__)
     if (d[1] == ':')
     {
-        ::DosSetDefaultDisk(1 + wxToupper(d[0]) - _T('A'));
+        ::DosSetDefaultDisk(wxToupper(d[0]) - _T('A') + 1);
        // do not call DosSetCurrentDir when just changing drive,
        // since it requires e.g. "d:." instead of "d:"!
        if (d.length() == 2)