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
37654ceb
Commit
37654ceb
authored
Apr 22, 2018
by
Fabian Maurer
Committed by
Alexandre Julliard
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: When loading settings for an application, respect a 0 in FontSize.
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7122c9d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
registry.c
programs/wineconsole/registry.c
+11
-2
No files found.
programs/wineconsole/registry.c
View file @
37654ceb
...
...
@@ -126,8 +126,17 @@ static void WINECON_RegLoadHelper(HKEY hConKey, struct config_data* cfg)
count
=
sizeof
(
val
);
if
(
!
RegQueryValueExW
(
hConKey
,
wszFontSize
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
{
cfg
->
cell_height
=
HIWORD
(
val
);
cfg
->
cell_width
=
LOWORD
(
val
);
int
height
=
HIWORD
(
val
);
int
width
=
LOWORD
(
val
);
/* A value of zero reflects the default settings */
if
(
height
!=
0
)
{
cfg
->
cell_height
=
height
;
}
if
(
width
!=
0
)
{
cfg
->
cell_width
=
width
;
}
}
count
=
sizeof
(
val
);
...
...
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