]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
no changes, just a typo fix
[wxWidgets.git] / src / common / filefn.cpp
index 5786749e8314ddbc4c141bca4e9c1d08884e19c2..c2614443c749841e77ff7e9514c5d975f3af962e 100644 (file)
@@ -1646,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)