From 4ba767258cbb16a46ad44db36efc511c1d29a8c8 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sat, 10 Dec 2011 20:31:32 +0000 Subject: [PATCH] Handle paths beginning with '\' on NT. [SVN r75887] --- src/engine/pathunix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/pathunix.c b/src/engine/pathunix.c index d2ff25c57..69d78bb23 100644 --- a/src/engine/pathunix.c +++ b/src/engine/pathunix.c @@ -293,6 +293,12 @@ void ShortPathToLongPath( char * short_path, string * out ) return; } + if ( short_path[0] == '\\' && short_path[1] == '\0') + { + string_push_back( out, '\\' ); + return; + } + if ( short_path[1] == ':' && ( short_path[2] == '\0' || ( short_path[2] == '\\' && short_path[3] == '\0' ) ) )