null string fix
This commit is contained in:
@@ -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 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user