comctl32/tests: Remove some dead code from TaskManager_OnRestoreMainWindow.
Gerald Pfeifer
gerald at pfeifer.com
Thu May 13 15:10:04 CDT 2010
GetMenu and GetSubMenu do not have side effects from what I can tell,
and I assume this code just sneaked in from the other parts in the
code where these two are actually used to change the menu.
Gerald
---
programs/taskmgr/taskmgr.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c
index a9c6278..542555f 100644
--- a/programs/taskmgr/taskmgr.c
+++ b/programs/taskmgr/taskmgr.c
@@ -502,11 +502,8 @@ static void SaveSettings(void)
static void TaskManager_OnRestoreMainWindow(void)
{
- HMENU hMenu, hOptionsMenu;
BOOL OnTop;
- hMenu = GetMenu(hMainWnd);
- hOptionsMenu = GetSubMenu(hMenu, OPTIONS_MENU_INDEX);
OnTop = ((GetWindowLong(hMainWnd, GWL_EXSTYLE) & WS_EX_TOPMOST) != 0);
OpenIcon(hMainWnd);
--
1.6.6.2
More information about the wine-patches
mailing list