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
a11b8ded
Commit
a11b8ded
authored
Dec 11, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Fix a crash on empty size field in Desktop Integration.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
19cb98aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
theme.c
programs/winecfg/theme.c
+11
-2
No files found.
programs/winecfg/theme.c
View file @
a11b8ded
...
...
@@ -1214,8 +1214,17 @@ ThemeDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
int
index
=
SendDlgItemMessageW
(
hDlg
,
IDC_SYSPARAM_COMBO
,
CB_GETCURSEL
,
0
,
0
);
index
=
SendDlgItemMessageW
(
hDlg
,
IDC_SYSPARAM_COMBO
,
CB_GETITEMDATA
,
index
,
0
);
metrics
[
index
].
size
=
atoi
(
text
);
HeapFree
(
GetProcessHeap
(),
0
,
text
);
if
(
text
)
{
metrics
[
index
].
size
=
atoi
(
text
);
HeapFree
(
GetProcessHeap
(),
0
,
text
);
}
else
{
/* for empty string set to minimum value */
SendDlgItemMessageW
(
hDlg
,
IDC_SYSPARAM_SIZE_UD
,
UDM_GETRANGE32
,
(
WPARAM
)
&
metrics
[
index
].
size
,
0
);
}
SendMessageW
(
GetParent
(
hDlg
),
PSM_CHANGED
,
0
,
0
);
break
;
...
...
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