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

Short circuit test if a file exists, when the name contains a grist.

[SVN r75765]
This commit is contained in:
Steven Watanabe
2011-12-01 19:34:06 +00:00
parent 1e7bc7b8cd
commit 6b8cf01ef5

View File

@@ -384,13 +384,21 @@ DWORD ShortPathToLongPath(LPCTSTR lpszShortPath,LPTSTR lpszLongPath,DWORD
OBJECT * short_path_to_long_path( OBJECT * short_path )
{
char buffer2[_MAX_PATH];
int ret = ShortPathToLongPath( object_str( short_path ), buffer2, _MAX_PATH );
if (ret)
return object_new( buffer2 );
/* Short circuit names with grists. */
if ( object_str( short_path )[ 0 ] == '<' )
{
return object_copy( short_path );
}
else
return object_copy( short_path );
{
char buffer2[_MAX_PATH];
int ret = ShortPathToLongPath( object_str( short_path ), buffer2, _MAX_PATH );
if (ret)
return object_new( buffer2 );
else
return object_copy( short_path );
}
}
#endif