convert a switch statement with a range to an if statement (msvc compatibility)

svn path=/trunk/; revision=27111
This commit is contained in:
Thomas Bluemel 2007-06-10 11:50:48 +00:00
parent 2fe952c999
commit b966dbe7ee

View file

@ -2337,15 +2337,12 @@ OnTrayWindowContextMenuCommand(IN HWND hWndOwner,
if (uiCmdId != 0) if (uiCmdId != 0)
{ {
switch (uiCmdId) if (uiCmdId >= ID_SHELL_CMD_FIRST && uiCmdId <= ID_SHELL_CMD_LAST)
{ {
case ID_SHELL_CMD_FIRST ... ID_SHELL_CMD_LAST: CMINVOKECOMMANDINFO cmici = {0};
if (pcm != NULL)
{ {
CMINVOKECOMMANDINFO cmici = {0};
if (pcm == NULL)
break;
/* Setup and invoke the shell command */ /* Setup and invoke the shell command */
cmici.cbSize = sizeof(cmici); cmici.cbSize = sizeof(cmici);
cmici.hwnd = hWndOwner; cmici.hwnd = hWndOwner;
@ -2354,13 +2351,12 @@ OnTrayWindowContextMenuCommand(IN HWND hWndOwner,
IContextMenu_InvokeCommand(pcm, IContextMenu_InvokeCommand(pcm,
&cmici); &cmici);
break;
} }
}
default: else
ITrayWindow_ExecContextMenuCmd(ITrayWindow_from_impl(This), {
uiCmdId); ITrayWindow_ExecContextMenuCmd(ITrayWindow_from_impl(This),
break; uiCmdId);
} }
} }