Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
bb05bb62
Commit
bb05bb62
authored
22 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Check for valid dialog info before using it.
parent
cff4b6d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/defdlg.c
+6
-6
6 additions, 6 deletions
windows/defdlg.c
with
6 additions
and
6 deletions
windows/defdlg.c
+
6
−
6
View file @
bb05bb62
...
...
@@ -211,15 +211,14 @@ static LRESULT DEFDLG_Proc( HWND hwnd, UINT msg, WPARAM wParam,
return
0
;
case
DM_SETDEFID
:
if
(
dlgInfo
->
flags
&
DF_END
)
return
1
;
DEFDLG_SetDefButton
(
hwnd
,
dlgInfo
,
wParam
?
GetDlgItem
(
hwnd
,
wParam
)
:
0
);
if
(
dlgInfo
&&
!
(
dlgInfo
->
flags
&
DF_END
))
DEFDLG_SetDefButton
(
hwnd
,
dlgInfo
,
wParam
?
GetDlgItem
(
hwnd
,
wParam
)
:
0
);
return
1
;
case
DM_GETDEFID
:
if
(
dlgInfo
&&
!
(
dlgInfo
->
flags
&
DF_END
))
{
HWND
hwndDefId
;
if
(
dlgInfo
->
flags
&
DF_END
)
return
0
;
if
(
dlgInfo
->
idResult
)
return
MAKELONG
(
dlgInfo
->
idResult
,
DC_HASDEFID
);
if
((
hwndDefId
=
DEFDLG_FindDefButton
(
hwnd
)))
...
...
@@ -228,7 +227,8 @@ static LRESULT DEFDLG_Proc( HWND hwnd, UINT msg, WPARAM wParam,
return
0
;
case
WM_NEXTDLGCTL
:
{
if
(
dlgInfo
)
{
HWND
hwndDest
=
(
HWND
)
wParam
;
if
(
!
lParam
)
hwndDest
=
GetNextDlgTabItem
(
hwnd
,
GetFocus
(),
wParam
);
...
...
@@ -252,7 +252,7 @@ static LRESULT DEFDLG_Proc( HWND hwnd, UINT msg, WPARAM wParam,
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
case
WM_GETFONT
:
return
dlgInfo
->
hUserFont
;
return
dlgInfo
?
dlgInfo
->
hUserFont
:
0
;
case
WM_CLOSE
:
PostMessageA
(
hwnd
,
WM_COMMAND
,
IDCANCEL
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment