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:
@@ -45,7 +45,8 @@ RString GetPrimaryVideoName()
|
|||||||
|
|
||||||
RString GetPrimaryVideoDriverName()
|
RString GetPrimaryVideoDriverName()
|
||||||
{
|
{
|
||||||
const RString sPrimaryDeviceName = GetPrimaryVideoName();
|
RString sPrimaryDeviceName = GetPrimaryVideoName();
|
||||||
|
TrimRight( sPrimaryDeviceName );
|
||||||
if( sPrimaryDeviceName != "" )
|
if( sPrimaryDeviceName != "" )
|
||||||
return sPrimaryDeviceName;
|
return sPrimaryDeviceName;
|
||||||
|
|
||||||
@@ -107,6 +108,7 @@ bool GetVideoDriverInfo( int iCardno, VideoDriverInfo &info )
|
|||||||
lst.erase( lst.begin()+iCardno );
|
lst.erase( lst.begin()+iCardno );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
TrimRight( info.sDescription );
|
||||||
|
|
||||||
RegistryAccess::GetRegValue( sKey, "DriverDate", info.sDate );
|
RegistryAccess::GetRegValue( sKey, "DriverDate", info.sDate );
|
||||||
RegistryAccess::GetRegValue( sKey, "MatchingDeviceId", info.sDeviceID );
|
RegistryAccess::GetRegValue( sKey, "MatchingDeviceId", info.sDeviceID );
|
||||||
|
|||||||
Reference in New Issue
Block a user