null string fix

This commit is contained in:
Glenn Maynard
2004-11-11 23:55:03 +00:00
parent c44818d9fd
commit e9ed9d20ee
+3 -5
View File
@@ -166,15 +166,13 @@ void BackgroundLoader::CacheFile( const CString &sFile )
if( !g_bEnableBackgroundLoading ) if( !g_bEnableBackgroundLoading )
return; return;
LockMut( m_Mutex );
if( sFile == "" ) if( sFile == "" )
++m_FinishedRequests[sFile]; return;
else
{ LockMut( m_Mutex );
m_CacheRequests.push_back( sFile ); m_CacheRequests.push_back( sFile );
m_StartSem.Post(); m_StartSem.Post();
} }
}
bool BackgroundLoader::IsCacheFileFinished( const CString &sFile, CString &sActualPath ) bool BackgroundLoader::IsCacheFileFinished( const CString &sFile, CString &sActualPath )
{ {