maybe fix / problem on NT

This commit is contained in:
David Rose 2002-08-08 00:34:46 +00:00
parent ed5ff3d496
commit 2d3f7d0a5a
1 changed files with 4 additions and 2 deletions

View File

@ -160,8 +160,10 @@ convert_pathname(const string &unix_style_pathname) {
windows_pathname = result;
#else // HAVE_CYGWIN
// Without Cygwin, just prefix $PANDA_ROOT.
windows_pathname =
get_panda_root() + front_to_back_slash(unix_style_pathname.substr(1));
windows_pathname = get_panda_root();
if (unix_style_pathname != "/") {
windows_pathname += front_to_back_slash(unix_style_pathname.substr(1));
}
#endif // HAVE_CYGWIN
}