user32: Add the SW_SHOWDEFAULT case to WINPOS_MinMaximize().

Dmitry Timoshkov dmitry at codeweavers.com
Tue Mar 29 01:00:39 CDT 2011


This patch fixes the 1st problem reported in the bug 26017.
Pinball creates its main window with WS_MAXIMIZE style set, then calls
ShowWindow(SW_SHOWDEFAULT). show_window() handles SW_SHOWDEFAULT same
way as it does for SW_RESTORE/SW_SHOWNORMAL, but WINPOS_MinMaximize()
misses the SW_SHOWDEFAULT case.
---
 dlls/user32/winpos.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 03c16c9..a8324e8 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -955,6 +955,7 @@ UINT WINPOS_MinMaximize( HWND hwnd, UINT cmd, LPRECT rect )
         /* fall through */
     case SW_SHOWNORMAL:
     case SW_RESTORE:
+    case SW_SHOWDEFAULT: /* FIXME: should have its own handler */
         old_style = WIN_SetStyle( hwnd, 0, WS_MINIMIZE | WS_MAXIMIZE );
         if (old_style & WS_MINIMIZE)
         {
-- 
1.7.4.1




More information about the wine-patches mailing list