mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
convert a switch statement with a range to an if statement (msvc compatibility)
svn path=/trunk/; revision=27111
This commit is contained in:
parent
2fe952c999
commit
b966dbe7ee
1 changed files with 9 additions and 13 deletions
|
@ -2337,15 +2337,12 @@ OnTrayWindowContextMenuCommand(IN HWND hWndOwner,
|
|||
|
||||
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 */
|
||||
cmici.cbSize = sizeof(cmici);
|
||||
cmici.hwnd = hWndOwner;
|
||||
|
@ -2354,13 +2351,12 @@ OnTrayWindowContextMenuCommand(IN HWND hWndOwner,
|
|||
|
||||
IContextMenu_InvokeCommand(pcm,
|
||||
&cmici);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
ITrayWindow_ExecContextMenuCmd(ITrayWindow_from_impl(This),
|
||||
uiCmdId);
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
ITrayWindow_ExecContextMenuCmd(ITrayWindow_from_impl(This),
|
||||
uiCmdId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue