From d3af3bb97e2afa5de95333327c9d45e5f9482ce1 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 18 Aug 2016 23:37:42 +0000 Subject: [PATCH] =?UTF-8?q?[NtUser]=20-=20Patch=20by=20J=C3=B3zef=20Kucia?= =?UTF-8?q?=20:=20Prevent=20resetting=20WS=5FMINIMIZE=20through=20SetWindo?= =?UTF-8?q?wLong.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=72335 --- reactos/win32ss/user/ntuser/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/user/ntuser/window.c b/reactos/win32ss/user/ntuser/window.c index a9b94c8e0e4..23619566a70 100644 --- a/reactos/win32ss/user/ntuser/window.c +++ b/reactos/win32ss/user/ntuser/window.c @@ -3587,8 +3587,10 @@ co_IntSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi, BOOL bAlte if (!bAlter) co_IntSendMessage(hWnd, WM_STYLECHANGING, GWL_STYLE, (LPARAM) &Style); - /* WS_CLIPSIBLINGS can't be reset on top-level windows */ + /* WS_CLIPSIBLINGS can't be reset on top-level windows */ if (Window->spwndParent == UserGetDesktopWindow()) Style.styleNew |= WS_CLIPSIBLINGS; + /* WS_MINIMIZE can't be reset */ + if (OldValue & WS_MINIMIZE) Style.styleNew |= WS_MINIMIZE; /* Fixes wine FIXME: changing WS_DLGFRAME | WS_THICKFRAME is supposed to change WS_EX_WINDOWEDGE too */ if (IntCheckFrameEdge(NewValue, Window->ExStyle)) Window->ExStyle |= WS_EX_WINDOWEDGE;