2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Handle paths beginning with '\' on NT.

[SVN r75887]
This commit is contained in:
Steven Watanabe
2011-12-10 20:31:32 +00:00
parent fc186f2603
commit 4ba767258c

View File

@@ -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' ) ) )