Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f2716342
Commit
f2716342
authored
Nov 18, 2014
by
Drew Ronneberg
Committed by
Alexandre Julliard
Nov 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Do not call SendMessage() to hide a window that is already hidden.
parent
0908c433
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
msg.c
dlls/user32/tests/msg.c
+0
-3
winpos.c
dlls/user32/winpos.c
+3
-0
No files found.
dlls/user32/tests/msg.c
View file @
f2716342
...
...
@@ -4673,8 +4673,6 @@ static void test_messages(void)
flush_events
();
ok_sequence
(
WmEmptySeq
,
"ShowWindow(SW_HIDE):overlapped"
,
FALSE
);
if
(
0
)
{
/* test ShowWindow(SW_HIDE) on a hidden window - multi-threaded */
hthread
=
CreateThread
(
NULL
,
0
,
show_window_thread
,
hwnd
,
0
,
&
tid
);
ok
(
hthread
!=
NULL
,
"CreateThread failed, error %d
\n
"
,
GetLastError
());
...
...
@@ -4682,7 +4680,6 @@ static void test_messages(void)
CloseHandle
(
hthread
);
flush_events
();
ok_sequence
(
WmEmptySeq
,
"ShowWindow(SW_HIDE):overlapped"
,
FALSE
);
}
ShowWindow
(
hwnd
,
SW_SHOW
);
flush_events
();
...
...
dlls/user32/winpos.c
View file @
f2716342
...
...
@@ -1219,6 +1219,9 @@ BOOL WINAPI ShowWindow( HWND hwnd, INT cmd )
if
((
full_handle
=
WIN_IsCurrentThread
(
hwnd
)))
return
show_window
(
full_handle
,
cmd
);
if
((
cmd
==
SW_HIDE
)
&&
!
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_VISIBLE
))
return
FALSE
;
return
SendMessageW
(
hwnd
,
WM_WINE_SHOWWINDOW
,
cmd
,
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment