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
45ae0c30
Commit
45ae0c30
authored
Aug 14, 2004
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in passing parameters to CFn_WMInitDialog and CFn_WMCommand
in FormatCharDlgProcW.
parent
a625761e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
fontdlg.c
dlls/commdlg/fontdlg.c
+2
-5
No files found.
dlls/commdlg/fontdlg.c
View file @
45ae0c30
...
...
@@ -1129,7 +1129,6 @@ INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM
lParam
)
{
LPCHOOSEFONTW
lpcf32w
;
LPCHOOSEFONTA
lpcf32a
;
INT_PTR
res
=
FALSE
;
if
(
uMsg
!=
WM_INITDIALOG
)
{
...
...
@@ -1144,8 +1143,7 @@ INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
else
{
lpcf32w
=
(
LPCHOOSEFONTW
)
lParam
;
lpcf32a
=
(
LPCHOOSEFONTA
)
lpcf32w
->
lpTemplateName
;
if
(
!
CFn_WMInitDialog
(
hDlg
,
wParam
,
lParam
,
lpcf32a
))
if
(
!
CFn_WMInitDialog
(
hDlg
,
wParam
,
lParam
,
(
LPCHOOSEFONTA
)
lpcf32w
))
{
TRACE
(
"CFn_WMInitDialog returned FALSE
\n
"
);
return
FALSE
;
...
...
@@ -1153,7 +1151,6 @@ INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
if
(
CFn_HookCallChk32
((
LPCHOOSEFONTA
)
lpcf32w
))
return
CallWindowProcW
((
WNDPROC
)
lpcf32w
->
lpfnHook
,
hDlg
,
WM_INITDIALOG
,
wParam
,
lParam
);
}
lpcf32a
=
(
LPCHOOSEFONTA
)
lpcf32w
->
lpTemplateName
;
switch
(
uMsg
)
{
case
WM_MEASUREITEM
:
...
...
@@ -1161,7 +1158,7 @@ INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
case
WM_DRAWITEM
:
return
CFn_WMDrawItem
(
hDlg
,
wParam
,
lParam
);
case
WM_COMMAND
:
return
CFn_WMCommand
(
hDlg
,
wParam
,
lParam
,
lpcf32a
);
return
CFn_WMCommand
(
hDlg
,
wParam
,
lParam
,
(
LPCHOOSEFONTW
)
lpcf32w
);
case
WM_DESTROY
:
return
CFn_WMDestroy
(
hDlg
,
wParam
,
lParam
);
case
WM_CHOOSEFONT_GETLOGFONT
:
...
...
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