git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9986
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
newdrive[0] = (char)('A' + (char)drive - (char)1);
newdrive[1] = ':';
newdrive[2] = '\0';
newdrive[0] = (char)('A' + (char)drive - (char)1);
newdrive[1] = ':';
newdrive[2] = '\0';
if (SetCurrentDirectory((LPSTR)newdrive))
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;
return 0;
else
return -1;