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
bcaac8e1
Commit
bcaac8e1
authored
Mar 30, 2004
by
Chris Morgan
Committed by
Alexandre Julliard
Mar 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Invalid "Desktop" values would crash winecfg, use the default value
instead.
parent
35ac185d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+8
-1
No files found.
programs/winecfg/x11drvdlg.c
View file @
bcaac8e1
...
...
@@ -86,6 +86,7 @@ void updateGUIForDesktopMode(HWND dialog) {
/* pokes the win32 api to setup the dialog from the config struct */
void
initX11DrvDlg
(
HWND
hDlg
)
{
static
const
char
default_desktop
[]
=
"640x480"
;
char
*
buf
;
char
*
bufindex
;
...
...
@@ -94,8 +95,14 @@ void initX11DrvDlg (HWND hDlg)
updatingUI
=
TRUE
;
/* desktop size */
buf
=
getConfigValue
(
section
,
"Desktop"
,
"640x480"
);
buf
=
getConfigValue
(
section
,
"Desktop"
,
default_desktop
);
bufindex
=
strchr
(
buf
,
'x'
);
if
(
!
bufindex
)
/* handle invalid "Desktop" values */
{
free
(
buf
);
buf
=
strdup
(
default_desktop
);
bufindex
=
strchr
(
buf
,
'x'
);
}
*
bufindex
=
'\0'
;
bufindex
++
;
SetWindowText
(
GetDlgItem
(
hDlg
,
IDC_DESKTOP_WIDTH
),
buf
);
...
...
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