From 5a1e0e91a1ca5ec98b0eeb335cda757d1261ed08 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Jul 2007 10:25:56 +0000 Subject: [PATCH] blind OS/2 compilation fix in wxSetWorkingDirectory() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2