]> git.saurik.com Git - wxWidgets.git/commitdiff
blind OS/2 compilation fix in wxSetWorkingDirectory()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Jul 2007 10:25:56 +0000 (10:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Jul 2007 10:25:56 +0000 (10:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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)