Flip slashes around on Windows

This commit is contained in:
Ben Boeckel 2010-12-17 09:45:39 -05:00
parent 0a014dab5c
commit 5249551f9f
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ inline const char* Getcwd(char* buf, unsigned int len)
{ {
buf[0] = toupper(buf[0]); buf[0] = toupper(buf[0]);
} }
for(char* p = buf; *p; ++p)
{
if(*p == '\\')
{
*p = '/';
}
}
return ret; return ret;
} }