Flip slashes around on Windows
This commit is contained in:
parent
0a014dab5c
commit
5249551f9f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue