Code cleanup.

This commit is contained in:
spx
2011-09-08 04:35:04 +00:00
parent 782fb0fba6
commit 6b06548260
3 changed files with 10 additions and 10 deletions

View File

@ -581,7 +581,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
break;
}
if (!(GetKeyState(VK_CONTROL) & 0x80) && // Ctrl is pressed, so only run default action
if (!(GetKeyState(VK_CONTROL) < 0) && // Ctrl is pressed, so only run default action
!bang.empty())
{
Rainmeter->ExecuteCommand(bang.c_str(), NULL);