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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user