Author: tkreuzer Date: Thu Jan 27 10:47:55 2011 New Revision: 50509
URL: http://svn.reactos.org/svn/reactos?rev=50509&view=rev Log: [EXPLORER_NEW] Fix syntax
Modified: branches/cmake-bringup/base/shell/explorer-new/taskswnd.c
Modified: branches/cmake-bringup/base/shell/explorer-new/taskswnd.c URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/shell/explore... ============================================================================== --- branches/cmake-bringup/base/shell/explorer-new/taskswnd.c [iso-8859-1] (original) +++ branches/cmake-bringup/base/shell/explorer-new/taskswnd.c [iso-8859-1] Thu Jan 27 10:47:55 2011 @@ -1725,8 +1725,9 @@
if (hmenu) { POINT pt; + int cmd; GetCursorPos(&pt); - int cmd = TrackPopupMenu(hmenu, TPM_LEFTBUTTON|TPM_RIGHTBUTTON|TPM_RETURNCMD, pt.x, pt.y, 0, This->hWndToolbar, NULL); + cmd = TrackPopupMenu(hmenu, TPM_LEFTBUTTON|TPM_RIGHTBUTTON|TPM_RETURNCMD, pt.x, pt.y, 0, This->hWndToolbar, NULL); if (cmd) { SetForegroundWindow(TaskItem->hWnd); // reactivate window after the context menu has closed PostMessage(TaskItem->hWnd, WM_SYSCOMMAND, cmd, 0); @@ -1756,19 +1757,19 @@ TaskSwitchWnd_HandleTaskGroupRightClick(This, TaskGroup); return TRUE; - } + } }
TaskItem = FindTaskItemByIndex(This, (INT)wIndex); - + if (TaskItem != NULL) { TaskSwitchWnd_HandleTaskItemRightClick(This, TaskItem); return TRUE; } - + return FALSE; }