From 5249551f9fd11016fffae0cb44581ae3daa2169c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 17 Dec 2010 09:45:39 -0500 Subject: [PATCH] Flip slashes around on Windows --- Tests/TestsWorkingDirectory/main.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tests/TestsWorkingDirectory/main.cxx b/Tests/TestsWorkingDirectory/main.cxx index 6c4802d4a..e1c24ba89 100644 --- a/Tests/TestsWorkingDirectory/main.cxx +++ b/Tests/TestsWorkingDirectory/main.cxx @@ -26,6 +26,13 @@ inline const char* Getcwd(char* buf, unsigned int len) { buf[0] = toupper(buf[0]); } + for(char* p = buf; *p; ++p) + { + if(*p == '\\') + { + *p = '/'; + } + } return ret; }