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
612e4c2b
Commit
612e4c2b
authored
Mar 13, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Assign to structs instead of using memcpy (with typo fixes).
parent
db6a901b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
clipboard.c
dlls/riched20/clipboard.c
+3
-3
editor.c
dlls/riched20/editor.c
+1
-1
style.c
dlls/riched20/style.c
+1
-1
No files found.
dlls/riched20/clipboard.c
View file @
612e4c2b
...
...
@@ -252,14 +252,14 @@ static HRESULT WINAPI DataObjectImpl_QueryGetData(IDataObject* iface, FORMATETC
return
foundFormat
?
DV_E_FORMATETC
:
DV_E_TYMED
;
}
static
HRESULT
WINAPI
DataObjectImpl_GetCanonicalFormatEtc
(
IDataObject
*
iface
,
FORMATETC
*
pformate
ct
In
,
static
HRESULT
WINAPI
DataObjectImpl_GetCanonicalFormatEtc
(
IDataObject
*
iface
,
FORMATETC
*
pformate
tc
In
,
FORMATETC
*
pformatetcOut
)
{
DataObjectImpl
*
This
=
(
DataObjectImpl
*
)
iface
;
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
pformate
ct
In
,
pformatetcOut
);
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
pformate
tc
In
,
pformatetcOut
);
if
(
pformatetcOut
)
{
memcpy
(
pformatetcOut
,
pformatectIn
,
sizeof
(
FORMATETC
))
;
*
pformatetcOut
=
*
pformatetcIn
;
pformatetcOut
->
ptd
=
NULL
;
}
return
DATA_S_SAMEFORMATETC
;
...
...
dlls/riched20/editor.c
View file @
612e4c2b
...
...
@@ -898,7 +898,7 @@ static void ME_RTFReadHook(RTF_Info *info) {
{
case
rtfBeginGroup
:
if
(
info
->
stackTop
<
maxStack
)
{
memcpy
(
&
info
->
stack
[
info
->
stackTop
].
fmt
,
&
info
->
style
->
fmt
,
sizeof
(
CHARFORMAT2W
))
;
info
->
stack
[
info
->
stackTop
].
fmt
=
info
->
style
->
fmt
;
info
->
stack
[
info
->
stackTop
].
codePage
=
info
->
codePage
;
info
->
stack
[
info
->
stackTop
].
unicodeLength
=
info
->
unicodeLength
;
}
...
...
dlls/riched20/style.c
View file @
612e4c2b
...
...
@@ -403,7 +403,7 @@ HFONT ME_SelectStyleFont(ME_Context *c, ME_Style *s)
TRACE_
(
richedit_style
)(
"font created %d
\n
"
,
nEmpty
);
item
->
hFont
=
s
->
hFont
;
item
->
nRefs
=
1
;
memcpy
(
&
item
->
lfSpecs
,
&
lf
,
sizeof
(
LOGFONTW
))
;
item
->
lfSpecs
=
lf
;
}
hOldFont
=
SelectObject
(
c
->
hDC
,
s
->
hFont
);
/* should be cached too, maybe ? */
...
...
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