fix for DJGPP returning unix/like/paths instead of what\you'd\expect\under\dos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1445,6 +1445,13 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
|
|||||||
delete [] cbuf;
|
delete [] cbuf;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __DJGPP__
|
||||||
|
// VS: DJGPP is Unicodish and uses / instead of \ as path deliminer. We don't like that.
|
||||||
|
for (wxChar *ch = buf; *ch; ch++)
|
||||||
|
if (*ch == wxT('/')) *ch = wxT('\\');
|
||||||
|
#endif
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user