mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fix bug in GetBinutilsVersion()
svn path=/trunk/; revision=17836
This commit is contained in:
parent
7f94d6e5bf
commit
130efbb545
1 changed files with 2 additions and 2 deletions
|
@ -865,7 +865,7 @@ MingwBackend::GetBinutilsVersion ( const string& binutilsCommand )
|
||||||
string version = string ( prevtoken );
|
string version = string ( prevtoken );
|
||||||
int firstSpace = version.find_last_not_of ( " \t" );
|
int firstSpace = version.find_last_not_of ( " \t" );
|
||||||
if ( firstSpace != -1 )
|
if ( firstSpace != -1 )
|
||||||
return string ( version, 0, firstSpace - 1);
|
return string ( version, 0, firstSpace);
|
||||||
else
|
else
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
@ -910,7 +910,7 @@ MingwBackend::DetectBinutils ()
|
||||||
}
|
}
|
||||||
if ( detectedBinutils )
|
if ( detectedBinutils )
|
||||||
{
|
{
|
||||||
const string& binutilsVersion = GetBinutilsVersion ( binutilsCommand );
|
string binutilsVersion = GetBinutilsVersion ( binutilsCommand );
|
||||||
if ( IsSupportedBinutilsVersion ( binutilsVersion ) )
|
if ( IsSupportedBinutilsVersion ( binutilsVersion ) )
|
||||||
printf ( "detected (%s)\n", binutilsCommand.c_str () );
|
printf ( "detected (%s)\n", binutilsCommand.c_str () );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue