mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[WIN32SS][NTUSER] ShowWindow.SW_MINIMIZE should show window (#3700)
- user32!ShowWindow.SW_MINIMIZE should show the window. - Fix the return value of ShowWindow function on invalid parameter. CORE-15669
This commit is contained in:
parent
5ce9e2ec8e
commit
59d4c11203
|
@ -2560,9 +2560,8 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
||||||
Swp |= SWP_NOACTIVATE | SWP_NOZORDER;
|
Swp |= SWP_NOACTIVATE | SWP_NOZORDER;
|
||||||
/* Fall through. */
|
/* Fall through. */
|
||||||
case SW_SHOWMINIMIZED:
|
case SW_SHOWMINIMIZED:
|
||||||
|
case SW_MINIMIZE: /* CORE-15669: SW_MINIMIZE also shows */
|
||||||
Swp |= SWP_SHOWWINDOW;
|
Swp |= SWP_SHOWWINDOW;
|
||||||
/* Fall through. */
|
|
||||||
case SW_MINIMIZE:
|
|
||||||
{
|
{
|
||||||
Swp |= SWP_NOACTIVATE;
|
Swp |= SWP_NOACTIVATE;
|
||||||
if (!(style & WS_MINIMIZE))
|
if (!(style & WS_MINIMIZE))
|
||||||
|
@ -2657,7 +2656,7 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//ERR("co_WinPosShowWindow Exit Good 4\n");
|
//ERR("co_WinPosShowWindow Exit Good 4\n");
|
||||||
return WasVisible;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowFlag = (Cmd != SW_HIDE);
|
ShowFlag = (Cmd != SW_HIDE);
|
||||||
|
|
Loading…
Reference in a new issue