mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Fixed a issue that Rainmeter crashes at LSLog(). (multithreading issue)
This commit is contained in:
		@@ -548,10 +548,9 @@ BOOL LSLog(int nLevel, LPCTSTR pszModule, LPCTSTR pszMessage)
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	Rainmeter->m_LogData.push_front(logInfo);
 | 
			
		||||
	if (Rainmeter->m_LogData.size() > MAXABOUTLOGLINES)
 | 
			
		||||
	if (Rainmeter)
 | 
			
		||||
	{
 | 
			
		||||
		Rainmeter->m_LogData.pop_back();
 | 
			
		||||
		Rainmeter->AddAboutLogInfo(logInfo);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Use the lsapi.dll version of the method if possible
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user