]> git.saurik.com Git - wxWidgets.git/commitdiff
fix OS/2 compilation of wxDoGetCwd()
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jan 2009 11:42:03 +0000 (11:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jan 2009 11:42:03 +0000 (11:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 1406932e2a1b7041c72b506249abdd8edcd6a2d3..51390ae725f9334f0221c7ceb8288510def35841 100644 (file)
@@ -1535,7 +1535,7 @@ wxChar *wxDoGetCwd(wxChar *buf, int sz)
         {
             sz -= 3;
             rc = ::DosQueryCurrentDir( 0 // current drive
-                                      ,cbuf + 3
+                                      ,(PBYTE)cbuf + 3
                                       ,(PULONG)&sz
                                      );
             cbuf[0] = char('A' + (ulDriveNum - 1));