2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +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 477b42b47d
commit 712e2c751e

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