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
af4009d2
Commit
af4009d2
authored
Jul 11, 2005
by
Felix Nawothnig
Committed by
Alexandre Julliard
Jul 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check structure size and fix return values in EM_GETCHARFORMAT.
parent
521d067b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
editor.c
dlls/riched20/editor.c
+8
-3
No files found.
dlls/riched20/editor.c
View file @
af4009d2
...
...
@@ -1076,14 +1076,19 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
}
case
EM_GETCHARFORMAT
:
{
CHARFORMAT2W
tmp
;
CHARFORMAT2W
tmp
,
*
dst
=
(
CHARFORMAT2W
*
)
lParam
;
if
(
dst
->
cbSize
!=
sizeof
(
CHARFORMATA
)
&&
dst
->
cbSize
!=
sizeof
(
CHARFORMATW
)
&&
dst
->
cbSize
!=
sizeof
(
CHARFORMAT2A
)
&&
dst
->
cbSize
!=
sizeof
(
CHARFORMAT2W
))
return
0
;
tmp
.
cbSize
=
sizeof
(
tmp
);
if
(
!
wParam
)
ME_GetDefaultCharFormat
(
editor
,
&
tmp
);
else
ME_GetSelectionCharFormat
(
editor
,
&
tmp
);
ME_CopyToCFAny
(
(
CHARFORMAT2W
*
)
lParam
,
&
tmp
);
return
0
;
ME_CopyToCFAny
(
dst
,
&
tmp
);
return
tmp
.
dwMask
;
}
case
EM_SETPARAFORMAT
:
ME_SetSelectionParaFormat
(
editor
,
(
PARAFORMAT2
*
)
lParam
);
...
...
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