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
89ded8c8
Commit
89ded8c8
authored
Jan 23, 2021
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jan 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Set DEFAULT_CHARSET if CF_NOSCRIPTSEL is set.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee3a3153
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
fontdlg.c
dlls/comdlg32/fontdlg.c
+9
-4
fontdlg.c
dlls/comdlg32/tests/fontdlg.c
+1
-1
No files found.
dlls/comdlg32/fontdlg.c
View file @
89ded8c8
...
...
@@ -1032,11 +1032,16 @@ static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, LPCHOOSEFO
get_dialog_font_point_size
(
hDlg
,
lpcf
);
/* charset */
i
=
SendDlgItemMessageW
(
hDlg
,
cmb5
,
CB_GETCURSEL
,
0
,
0
);
if
(
i
!=
CB_ERR
)
lpxx
->
lfCharSet
=
SendDlgItemMessageW
(
hDlg
,
cmb5
,
CB_GETITEMDATA
,
i
,
0
);
else
if
(
lpcf
->
Flags
&
CF_NOSCRIPTSEL
)
lpxx
->
lfCharSet
=
DEFAULT_CHARSET
;
else
{
i
=
SendDlgItemMessageW
(
hDlg
,
cmb5
,
CB_GETCURSEL
,
0
,
0
);
if
(
i
!=
CB_ERR
)
lpxx
->
lfCharSet
=
SendDlgItemMessageW
(
hDlg
,
cmb5
,
CB_GETITEMDATA
,
i
,
0
);
else
lpxx
->
lfCharSet
=
DEFAULT_CHARSET
;
}
lpxx
->
lfStrikeOut
=
IsDlgButtonChecked
(
hDlg
,
chx1
);
lpxx
->
lfUnderline
=
IsDlgButtonChecked
(
hDlg
,
chx2
);
lpxx
->
lfWidth
=
lpxx
->
lfOrientation
=
lpxx
->
lfEscapement
=
0
;
...
...
dlls/comdlg32/tests/fontdlg.c
View file @
89ded8c8
...
...
@@ -116,7 +116,7 @@ static void test_ChooseFontA(void)
cfa
.
Flags
=
CF_ENABLEHOOK
|
CF_INITTOLOGFONTSTRUCT
|
CF_SCREENFONTS
|
CF_NOSCRIPTSEL
;
ret
=
ChooseFontA
(
&
cfa
);
ok
(
ret
==
TRUE
,
"ChooseFontA returned FALSE
\n
"
);
todo_wine
ok
(
lfa
.
lfCharSet
==
DEFAULT_CHARSET
,
"Expected DEFAULT_CHARSET, got %i
\n
"
,
lfa
.
lfCharSet
);
ok
(
lfa
.
lfCharSet
==
DEFAULT_CHARSET
,
"Expected DEFAULT_CHARSET, got %i
\n
"
,
lfa
.
lfCharSet
);
printer_ic
=
get_printer_ic
();
if
(
!
printer_ic
)
...
...
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