From 64e13bde730526eb5ff5913cb48672bf36815722 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 10 Dec 2011 07:00:09 +0000 Subject: [PATCH] - Fix make window active so to restore window. svn path=/trunk/; revision=54635 --- reactos/dll/win32/user32/controls/appswitch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/user32/controls/appswitch.c b/reactos/dll/win32/user32/controls/appswitch.c index 063e5b2b5c5..f39c90f6d0b 100644 --- a/reactos/dll/win32/user32/controls/appswitch.c +++ b/reactos/dll/win32/user32/controls/appswitch.c @@ -52,10 +52,12 @@ void MakeWindowActive(HWND hwnd) { WINDOWPLACEMENT wpl; + wpl.length = sizeof(WINDOWPLACEMENT); GetWindowPlacement(hwnd, &wpl); - + + TRACE("GetWindowPlacement wpl.showCmd %d\n",wpl.showCmd); if (wpl.showCmd == SW_SHOWMINIMIZED) - ShowWindow(hwnd, SW_RESTORE); + ShowWindowAsync(hwnd, SW_RESTORE); BringWindowToTop(hwnd); // same as: SetWindowPos(hwnd,HWND_TOP,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); ? SetForegroundWindow(hwnd);