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
2ae85119
Commit
2ae85119
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use MAKELPARAM instead of "(LPARAM) MAKELONG".
parent
9f92f6bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
editor.c
dlls/riched20/tests/editor.c
+4
-4
No files found.
dlls/riched20/tests/editor.c
View file @
2ae85119
...
...
@@ -3821,7 +3821,7 @@ static void test_WM_SETFONT(void)
returnedCF2A
.
cbSize
=
sizeof
(
returnedCF2A
);
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"x"
);
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont1
,
(
LPARAM
)
MAKELONG
((
WORD
)
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont1
,
MAKELPARAM
(
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
EM_GETCHARFORMAT
,
SCF_DEFAULT
,
(
LPARAM
)
&
returnedCF2A
);
GetObjectA
(
testFont1
,
sizeof
(
LOGFONTA
),
&
sentLogFont
);
...
...
@@ -3829,14 +3829,14 @@ static void test_WM_SETFONT(void)
"EM_GETCHARFORMAT: Returned wrong font on test 1. Sent: %s, Returned: %s
\n
"
,
sentLogFont
.
lfFaceName
,
returnedCF2A
.
szFaceName
);
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont2
,
(
LPARAM
)
MAKELONG
((
WORD
)
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont2
,
MAKELPARAM
(
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
EM_GETCHARFORMAT
,
SCF_DEFAULT
,
(
LPARAM
)
&
returnedCF2A
);
GetObjectA
(
testFont2
,
sizeof
(
LOGFONTA
),
&
sentLogFont
);
ok
(
!
strcmp
(
sentLogFont
.
lfFaceName
,
returnedCF2A
.
szFaceName
),
"EM_GETCHARFORMAT: Returned wrong font on test 2. Sent: %s, Returned: %s
\n
"
,
sentLogFont
.
lfFaceName
,
returnedCF2A
.
szFaceName
);
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont3
,
(
LPARAM
)
MAKELONG
((
WORD
)
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont3
,
MAKELPARAM
(
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
EM_GETCHARFORMAT
,
SCF_DEFAULT
,
(
LPARAM
)
&
returnedCF2A
);
GetObjectA
(
testFont3
,
sizeof
(
LOGFONTA
),
&
sentLogFont
);
ok
(
!
strcmp
(
sentLogFont
.
lfFaceName
,
returnedCF2A
.
szFaceName
),
...
...
@@ -3923,7 +3923,7 @@ static void test_EM_GETMODIFY(void)
/* setting font doesn't change modify flag */
SendMessage
(
hwndRichEdit
,
EM_SETMODIFY
,
FALSE
,
0
);
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont
,
(
LPARAM
)
MAKELONG
((
WORD
)
TRUE
,
0
));
SendMessage
(
hwndRichEdit
,
WM_SETFONT
,
(
WPARAM
)
testFont
,
MAKELPARAM
(
TRUE
,
0
));
result
=
SendMessage
(
hwndRichEdit
,
EM_GETMODIFY
,
0
,
0
);
ok
(
result
==
0
,
"EM_GETMODIFY returned non-zero, instead of zero on setting font
\n
"
);
...
...
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