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
00442ba5
Commit
00442ba5
authored
Oct 23, 1999
by
Adrian Thurston
Committed by
Alexandre Julliard
Oct 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect against wrong return value from WM_INITDIALOG.
parent
be5753d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
dialog.c
windows/dialog.c
+11
-1
No files found.
windows/dialog.c
View file @
00442ba5
...
...
@@ -771,12 +771,22 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
if
(
DIALOG_CreateControls
(
wndPtr
,
dlgTemplate
,
&
template
,
hInst
,
win32Template
))
{
/* Send initialisation messages and set focus */
HWND
hwndPreInitFocus
;
/* Send initialisation messages and set focus */
dlgInfo
->
hwndFocus
=
GetNextDlgTabItem
(
hwnd
,
0
,
FALSE
);
hwndPreInitFocus
=
GetFocus
();
if
(
SendMessageA
(
hwnd
,
WM_INITDIALOG
,
(
WPARAM
)
dlgInfo
->
hwndFocus
,
param
))
SetFocus
(
dlgInfo
->
hwndFocus
);
else
{
/* If the dlgproc has returned FALSE (indicating handling of keyboard focus)
but the focus has not changed, set the focus where we expect it. */
if
(
GetFocus
()
==
hwndPreInitFocus
)
SetFocus
(
dlgInfo
->
hwndFocus
);
}
if
(
template
.
style
&
WS_VISIBLE
&&
!
(
wndPtr
->
dwStyle
&
WS_VISIBLE
))
{
...
...
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