From 2d3f7d0a5a41178723698ebb9b77948374fb99ed Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 8 Aug 2002 00:34:46 +0000 Subject: [PATCH] maybe fix / problem on NT --- dtool/src/dtoolutil/filename.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dtool/src/dtoolutil/filename.cxx b/dtool/src/dtoolutil/filename.cxx index b304e6ee97..6c4f8f5e45 100644 --- a/dtool/src/dtoolutil/filename.cxx +++ b/dtool/src/dtoolutil/filename.cxx @@ -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 }