Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a05b5389
Commit
a05b5389
authored
Jan 16, 2014
by
Ken Thomases
Committed by
Alexandre Julliard
Jan 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Ignore 0 result from WM_QUERYENDSESSION if target window was destroyed.
parent
ed3ed035
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
shutdown.c
programs/wineboot/shutdown.c
+8
-0
No files found.
programs/wineboot/shutdown.c
View file @
a05b5389
...
...
@@ -100,6 +100,14 @@ static void CALLBACK end_session_message_callback( HWND hwnd, UINT msg, ULONG_PT
msg
==
WM_QUERYENDSESSION
?
"WM_QUERYENDSESSION"
:
(
msg
==
WM_ENDSESSION
?
"WM_ENDSESSION"
:
"Unknown"
),
hwnd
,
lresult
);
/* If the window was destroyed while the message was in its queue, SendMessageCallback()
calls us with a default 0 result. Ignore it. */
if
(
!
lresult
&&
!
IsWindow
(
hwnd
))
{
WINE_TRACE
(
"window was destroyed; ignoring FALSE lresult
\n
"
);
lresult
=
TRUE
;
}
/* we only care if a WM_QUERYENDSESSION response is FALSE */
cb_data
->
result
=
cb_data
->
result
&&
lresult
;
...
...
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