[NtUser] - Patch by Józef Kucia : Prevent resetting WS_MINIMIZE through SetWindowLong.

svn path=/trunk/; revision=72335
This commit is contained in:
James Tabor 2016-08-18 23:37:42 +00:00
parent 1a411ce0e6
commit d3af3bb97e

View file

@ -3589,6 +3589,8 @@ co_IntSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi, BOOL bAlte
/* 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;