Fixed crash that could occur when using RmExecute from separate thread (in WebParser)

This commit is contained in:
Birunthan Mohanathas
2012-02-22 06:42:52 +00:00
parent bb865ec514
commit b60d7bdd90
6 changed files with 14 additions and 9 deletions

View File

@ -1102,6 +1102,10 @@ LRESULT CALLBACK CRainmeter::MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
}
break;
case WM_RAINMETER_EXECUTE:
Rainmeter->ExecuteCommand((const WCHAR*)lParam, (CMeterWindow*)wParam);
break;
default:
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}
@ -2090,7 +2094,6 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
}
}
/*
** Executes command when current processing is done.
**