mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed minor access violation when exiting Rainmeter.
This commit is contained in:
parent
32b0a93a43
commit
1115764ce4
@ -3503,7 +3503,16 @@ LRESULT CMeterWindow::OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
else
|
||||
{
|
||||
// Forward to tray window, which handles all the other commands
|
||||
SendMessage(m_Rainmeter->GetTrayWindow()->GetWindow(), WM_COMMAND, wParam, lParam);
|
||||
HWND tray = m_Rainmeter->GetTrayWindow()->GetWindow();
|
||||
|
||||
if (wParam == ID_CONTEXT_QUIT)
|
||||
{
|
||||
PostMessage(tray, WM_COMMAND, wParam, lParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessage(tray, WM_COMMAND, wParam, lParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(CError& error)
|
||||
|
Loading…
Reference in New Issue
Block a user