X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bcc9eb973ea1aba395d6020a9215edf62251aff..4f1cf94b942cbf62616a8a1a066b1a13ff6af792:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 5786749e83..c2614443c7 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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)