Unicode compilation fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-05-19 17:59:51 +00:00
parent af9083592b
commit e987a489c8
2 changed files with 8 additions and 8 deletions

View File

@@ -308,18 +308,18 @@ static const int ID_NEW = 1004;
#if defined(__WXMSW__) || defined(__WXPM__)
int setdrive(int drive)
{
char newdrive[3];
wxChar newdrive[3];
if (drive < 1 || drive > 31)
return -1;
newdrive[0] = (char)('A' + (char)drive - (char)1);
newdrive[1] = ':';
newdrive[2] = '\0';
newdrive[0] = (wxChar)(wxT('A') + drive - 1);
newdrive[1] = wxT(':');
newdrive[2] = wxT('\0');
#if defined(__WXMSW__)
#ifdef __WIN16__
if (wxSetWorkingDirectory(newdrive))
#else
if (SetCurrentDirectory((LPSTR)newdrive))
if (::SetCurrentDirectory(newdrive))
#endif
#else
// VA doesn't know what LPSTR is and has its own set