return NULL -> return CString() for clarity and efficiency

This commit is contained in:
Chris Danford
2005-09-04 16:55:21 +00:00
parent c414d1bcf8
commit 48ebc53549
55 changed files with 107 additions and 107 deletions
@@ -14,14 +14,14 @@ CString GetPrimaryVideoName()
hInstUser32 = LoadLibrary("User32.DLL");
if( !hInstUser32 )
return "";
return CString();
// VC6 don't have a stub to static link with, so link dynamically.
EnumDisplayDevices = (pfnEnumDisplayDevices)GetProcAddress(hInstUser32,"EnumDisplayDevicesA");
if( EnumDisplayDevices == NULL )
{
FreeLibrary(hInstUser32);
return "";
return CString();
}
CString sPrimaryDeviceName;