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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user