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
234b0d8c
Commit
234b0d8c
authored
Jul 07, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Cast-qual warning fix.
parent
382329c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
fontdlg16.c
dlls/comdlg32/fontdlg16.c
+5
-3
No files found.
dlls/comdlg32/fontdlg16.c
View file @
234b0d8c
...
@@ -76,10 +76,12 @@ static void CFn_CHOOSEFONT16to32W(const CHOOSEFONT16 *chf16, LPCHOOSEFONTW chf32
...
@@ -76,10 +76,12 @@ static void CFn_CHOOSEFONT16to32W(const CHOOSEFONT16 *chf16, LPCHOOSEFONTW chf32
int
len
;
int
len
;
if
(
chf16
->
Flags
&
CF_ENABLETEMPLATE
)
if
(
chf16
->
Flags
&
CF_ENABLETEMPLATE
)
{
{
LPWSTR
name32w
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
MapSL
(
chf16
->
lpTemplateName
),
-
1
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
MapSL
(
chf16
->
lpTemplateName
),
-
1
,
NULL
,
0
);
chf32w
->
lpTemplateName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
name32w
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
MapSL
(
chf16
->
lpTemplateName
),
MultiByteToWideChar
(
CP_ACP
,
0
,
MapSL
(
chf16
->
lpTemplateName
),
-
1
,
name32w
,
len
);
-
1
,
(
LPWSTR
)
chf32w
->
lpTemplateName
,
len
)
;
chf32w
->
lpTemplateName
=
name32w
;
}
}
if
(
chf16
->
Flags
&
CF_USESTYLE
)
if
(
chf16
->
Flags
&
CF_USESTYLE
)
{
{
...
...
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