OS/2 fix in setdrive.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-05-03 17:43:18 +00:00
parent d20cf96f70
commit 50c76ce1f7

View File

@@ -317,7 +317,12 @@ int setdrive(int drive)
newdrive[0] = (char)('A' + (char)drive - (char)1);
newdrive[1] = ':';
newdrive[2] = '\0';
#if defined(__WXMSW__)
if (SetCurrentDirectory((LPSTR)newdrive))
#else
// VA doesn't know what LPSTR is and has its own set
if (DosSetCurrentDir((PSZ)newdrive))
#endif
return 0;
else
return -1;