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
d52b9ddd
Commit
d52b9ddd
authored
Mar 05, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Assign to structs instead of using memcpy.
parent
5f160e56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
conpoint.c
dlls/mshtml/conpoint.c
+1
-1
oleobj.c
dlls/mshtml/oleobj.c
+3
-3
persist.c
dlls/mshtml/persist.c
+1
-1
No files found.
dlls/mshtml/conpoint.c
View file @
d52b9ddd
...
...
@@ -110,7 +110,7 @@ static HRESULT WINAPI ConnectionPoint_GetConnectionInterface(IConnectionPoint *i
if
(
!
pIID
)
return
E_POINTER
;
memcpy
(
pIID
,
This
->
iid
,
sizeof
(
IID
))
;
*
pIID
=
*
This
->
iid
;
return
S_OK
;
}
...
...
dlls/mshtml/oleobj.c
View file @
d52b9ddd
...
...
@@ -103,7 +103,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
TRACE
(
"hostinfo = {%u %08x %08x %s %s}
\n
"
,
hostinfo
.
cbSize
,
hostinfo
.
dwFlags
,
hostinfo
.
dwDoubleClick
,
debugstr_w
(
hostinfo
.
pchHostCss
),
debugstr_w
(
hostinfo
.
pchHostNS
));
memcpy
(
&
This
->
hostinfo
,
&
hostinfo
,
sizeof
(
DOCHOSTUIINFO
))
;
This
->
hostinfo
=
hostinfo
;
}
if
(
!
This
->
has_key_path
)
{
...
...
@@ -285,7 +285,7 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
if
(
SUCCEEDED
(
hres
))
{
if
(
lprcPosRect
)
{
RECT
rect
;
/* We need to pass rect as not const pointer */
memcpy
(
&
rect
,
lprcPosRect
,
sizeof
(
RECT
))
;
rect
=
*
lprcPosRect
;
IOleDocumentView_SetRect
(
DOCVIEW
(
This
),
&
rect
);
}
IOleDocumentView_Show
(
DOCVIEW
(
This
),
TRUE
);
...
...
@@ -325,7 +325,7 @@ static HRESULT WINAPI OleObject_GetUserClassID(IOleObject *iface, CLSID *pClsid)
if
(
!
pClsid
)
return
E_INVALIDARG
;
memcpy
(
pClsid
,
&
CLSID_HTMLDocument
,
sizeof
(
GUID
))
;
*
pClsid
=
CLSID_HTMLDocument
;
return
S_OK
;
}
...
...
dlls/mshtml/persist.c
View file @
d52b9ddd
...
...
@@ -577,7 +577,7 @@ static HRESULT WINAPI PersistFile_GetClassID(IPersistFile *iface, CLSID *pClassI
if
(
!
pClassID
)
return
E_INVALIDARG
;
memcpy
(
pClassID
,
&
CLSID_HTMLDocument
,
sizeof
(
CLSID
))
;
*
pClassID
=
CLSID_HTMLDocument
;
return
S_OK
;
}
...
...
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