fix WARNING: Couldn't find primary display driver; logging all drivers

This commit is contained in:
Glenn Maynard
2007-05-06 00:55:11 +00:00
parent 1d7d342a2d
commit 9c5b919faf
@@ -40,13 +40,13 @@ RString GetPrimaryVideoName()
} }
FreeLibrary( hInstUser32 ); FreeLibrary( hInstUser32 );
TrimRight( sPrimaryDeviceName );
return sPrimaryDeviceName; return sPrimaryDeviceName;
} }
RString GetPrimaryVideoDriverName() RString GetPrimaryVideoDriverName()
{ {
RString sPrimaryDeviceName = GetPrimaryVideoName(); RString sPrimaryDeviceName = GetPrimaryVideoName();
TrimRight( sPrimaryDeviceName );
if( sPrimaryDeviceName != "" ) if( sPrimaryDeviceName != "" )
return sPrimaryDeviceName; return sPrimaryDeviceName;