Anatoly Lyutin : user32: Return at the end of processing (cmd == SW_HIDE).
Alexandre Julliard
julliard at winehq.org
Sat Jun 21 05:39:15 CDT 2008
Module: wine
Branch: master
Commit: 8fb730543dd5c2a3a44145e8d1df4b08e8e519e2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8fb730543dd5c2a3a44145e8d1df4b08e8e519e2
Author: Anatoly Lyutin <vostok at etersoft.ru>
Date: Thu Jun 19 16:15:58 2008 +0400
user32: Return at the end of processing (cmd == SW_HIDE).
---
dlls/user32/tests/msg.c | 2 +-
dlls/user32/winpos.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index a47cfc5..a45ff8d 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -4112,7 +4112,7 @@ static void test_messages(void)
ok(GetActiveWindow() == hwnd, "window should be active\n");
ok(GetFocus() == hwnd, "window should have input focus\n");
ShowWindow(hwnd, SW_HIDE);
- ok_sequence(WmHideOverlappedSeq, "ShowWindow(SW_HIDE):overlapped", TRUE);
+ ok_sequence(WmHideOverlappedSeq, "ShowWindow(SW_HIDE):overlapped", FALSE);
ShowWindow(hwnd, SW_SHOW);
ok_sequence(WmShowOverlappedSeq, "ShowWindow(SW_SHOW):overlapped", TRUE);
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 621f89a..aeea354 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1073,6 +1073,7 @@ static BOOL show_window( HWND hwnd, INT cmd )
if (parent == GetDesktopWindow()) parent = 0;
SetFocus(parent);
}
+ return wasVisible;
}
if (IsIconic(hwnd)) WINPOS_ShowIconTitle( hwnd, TRUE );
More information about the wine-cvs
mailing list