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
ad32b28a
Commit
ad32b28a
authored
Apr 06, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Avoid accessing the dialog info of a destroyed window.
parent
548cef03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dialog.c
dlls/user32/dialog.c
+4
-3
No files found.
dlls/user32/dialog.c
View file @
ad32b28a
...
...
@@ -691,7 +691,7 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
if
(
dlgProc
)
{
HWND
focus
=
GetNextDlgTabItem
(
hwnd
,
0
,
FALSE
);
if
(
SendMessageW
(
hwnd
,
WM_INITDIALOG
,
(
WPARAM
)
focus
,
param
)
&&
if
(
SendMessageW
(
hwnd
,
WM_INITDIALOG
,
(
WPARAM
)
focus
,
param
)
&&
IsWindow
(
hwnd
)
&&
((
~
template
.
style
&
DS_CONTROL
)
||
(
template
.
style
&
WS_VISIBLE
)))
{
/* By returning TRUE, app has requested a default focus assignment.
...
...
@@ -811,15 +811,16 @@ INT DIALOG_DoDialogBox( HWND hwnd, HWND owner )
if
(
msg
.
message
==
WM_QUIT
)
{
PostQuitMessage
(
msg
.
wParam
);
dlgInfo
->
flags
|=
DF_END
;
if
(
!
IsWindow
(
hwnd
))
return
0
;
break
;
}
if
(
!
IsWindow
(
hwnd
))
return
0
;
if
(
!
(
dlgInfo
->
flags
&
DF_END
)
&&
!
IsDialogMessageW
(
hwnd
,
&
msg
))
{
TranslateMessage
(
&
msg
);
DispatchMessageW
(
&
msg
);
}
if
(
!
IsWindow
(
hwnd
))
return
0
;
if
(
dlgInfo
->
flags
&
DF_END
)
break
;
if
(
bFirstEmpty
&&
msg
.
message
==
WM_TIMER
)
...
...
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