Fixed handling for command-line bangs starting with "["

This commit is contained in:
Birunthan Mohanathas 2012-05-17 11:30:22 +03:00
parent 1ec7f71ce7
commit ef48f74a9b

View File

@ -55,7 +55,7 @@ int RainmeterMain(LPWSTR cmdLine)
{ {
COPYDATASTRUCT cds; COPYDATASTRUCT cds;
if (cmdLine[0] == L'!') if (cmdLine[0] == L'!' || cmdLine[0] == L'[')
{ {
// Deliver bang to existing Rainmeter instance // Deliver bang to existing Rainmeter instance
cds.dwData = 1; cds.dwData = 1;
@ -82,7 +82,7 @@ int RainmeterMain(LPWSTR cmdLine)
} }
} }
if (cmdLine[0] == L'!' && if ((cmdLine[0] == L'!' || cmdLine[0] == L'[') &&
_wcsicmp(L"!RainmeterQuit", cmdLine) != 0 && _wcsicmp(L"!RainmeterQuit", cmdLine) != 0 &&
_wcsicmp(L"!Quit", cmdLine) != 0) _wcsicmp(L"!Quit", cmdLine) != 0)
{ {