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:
@ -148,12 +148,12 @@ void UpdateAboutStatistics(LPCTSTR entryName)
|
||||
{
|
||||
int count = ListView_GetItemCount(widget);
|
||||
|
||||
std::list<CRainmeter::LOG_INFO>::const_iterator iter = Rainmeter->m_LogData.begin();
|
||||
std::list<CRainmeter::LOG_INFO>::const_iterator iter = Rainmeter->GetAboutLogData().begin();
|
||||
LVITEM vitem;
|
||||
vitem.mask = LVIF_TEXT;
|
||||
|
||||
int i = 0;
|
||||
for ( ; iter != Rainmeter->m_LogData.end(); ++iter)
|
||||
for ( ; iter != Rainmeter->GetAboutLogData().end(); ++iter)
|
||||
{
|
||||
if (i < count)
|
||||
{
|
||||
|
Reference in New Issue
Block a user