work around reconfig video ever time due to driver strings with

spaces at the end; regression probably caused by IniFile
stripping spaces
This commit is contained in:
Glenn Maynard
2007-05-04 17:19:14 +00:00
parent 9d6d789d9e
commit 34befdb1d3
@@ -45,7 +45,8 @@ RString GetPrimaryVideoName()
RString GetPrimaryVideoDriverName()
{
const RString sPrimaryDeviceName = GetPrimaryVideoName();
RString sPrimaryDeviceName = GetPrimaryVideoName();
TrimRight( sPrimaryDeviceName );
if( sPrimaryDeviceName != "" )
return sPrimaryDeviceName;
@@ -107,6 +108,7 @@ bool GetVideoDriverInfo( int iCardno, VideoDriverInfo &info )
lst.erase( lst.begin()+iCardno );
continue;
}
TrimRight( info.sDescription );
RegistryAccess::GetRegValue( sKey, "DriverDate", info.sDate );
RegistryAccess::GetRegValue( sKey, "MatchingDeviceId", info.sDeviceID );