From c828055508121c4b7b4ba674691887573239c970 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Wed, 10 Jun 2009 18:44:31 +0000 Subject: [PATCH] - Fix Firefox 1.0/1.5 minimisation to taskbar Patch by Mikhail Denisenko (denisenkom@gmail.com) See issue #2451 for more details. svn path=/trunk/; revision=41373 --- reactos/subsystems/win32/win32k/ntuser/window.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index 1a53c009fc2..6b4e69659f4 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -3997,14 +3997,15 @@ NtUserGetWindowPlacement(HWND hWnd, { Safepl.showCmd = SW_HIDE; } - else if (0 != (Window->Flags & WINDOWOBJECT_RESTOREMAX) || - 0 != (Wnd->Style & WS_MAXIMIZE)) + else if ((0 != (Window->Flags & WINDOWOBJECT_RESTOREMAX) || + 0 != (Wnd->Style & WS_MAXIMIZE)) && + 0 == (Wnd->Style & WS_MINIMIZE)) { - Safepl.showCmd = SW_MAXIMIZE; + Safepl.showCmd = SW_SHOWMAXIMIZED; } else if (0 != (Wnd->Style & WS_MINIMIZE)) { - Safepl.showCmd = SW_MINIMIZE; + Safepl.showCmd = SW_SHOWMINIMIZED; } else if (0 != (Wnd->Style & WS_VISIBLE)) {