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
4971f2f6
Commit
4971f2f6
authored
Mar 10, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Assign to structs instead of using memcpy.
parent
89c86dd9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
clipboard.c
dlls/ole32/clipboard.c
+1
-1
compobj.c
dlls/ole32/compobj.c
+1
-1
datacache.c
dlls/ole32/datacache.c
+2
-2
defaulthandler.c
dlls/ole32/defaulthandler.c
+2
-2
errorinfo.c
dlls/ole32/errorinfo.c
+2
-2
No files found.
dlls/ole32/clipboard.c
View file @
4971f2f6
...
...
@@ -1365,7 +1365,7 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_GetCanonicalFormatEtc(
if
(
!
pformatectIn
||
!
pformatetcOut
)
return
E_INVALIDARG
;
memcpy
(
pformatetcOut
,
pformatectIn
,
sizeof
(
FORMATETC
))
;
*
pformatetcOut
=
*
pformatectIn
;
return
DATA_S_SAMEFORMATETC
;
}
...
...
dlls/ole32/compobj.c
View file @
4971f2f6
...
...
@@ -2855,7 +2855,7 @@ HRESULT WINAPI CoGetTreatAsClass(REFCLSID clsidOld, LPCLSID clsidNew)
LONG
len
=
sizeof
(
szClsidNew
);
FIXME
(
"(%s,%p)
\n
"
,
debugstr_guid
(
clsidOld
),
clsidNew
);
memcpy
(
clsidNew
,
clsidOld
,
sizeof
(
CLSID
))
;
/* copy over old value */
*
clsidNew
=
*
clsidOld
;
/* copy over old value */
res
=
COM_OpenKeyForCLSID
(
clsidOld
,
wszTreatAs
,
KEY_READ
,
&
hkey
);
if
(
FAILED
(
res
))
...
...
dlls/ole32/datacache.c
View file @
4971f2f6
...
...
@@ -1240,13 +1240,13 @@ static HRESULT WINAPI DataCache_GetClassID(
HRESULT
hr
=
IStorage_Stat
(
cache_entry
->
storage
,
&
statstg
,
STATFLAG_NONAME
);
if
(
SUCCEEDED
(
hr
))
{
memcpy
(
pClassID
,
&
statstg
.
clsid
,
sizeof
(
*
pClassID
))
;
*
pClassID
=
statstg
.
clsid
;
return
S_OK
;
}
}
}
memcpy
(
pClassID
,
&
CLSID_NULL
,
sizeof
(
*
pClassID
))
;
*
pClassID
=
CLSID_NULL
;
return
S_OK
;
}
...
...
dlls/ole32/defaulthandler.c
View file @
4971f2f6
...
...
@@ -672,7 +672,7 @@ static HRESULT WINAPI DefaultHandler_GetUserClassID(
if
(
!
pClsid
)
return
E_POINTER
;
memcpy
(
pClsid
,
&
This
->
clsid
,
sizeof
(
CLSID
))
;
*
pClsid
=
This
->
clsid
;
return
S_OK
;
}
...
...
@@ -1744,7 +1744,7 @@ static DefaultHandler* DefaultHandler_Construct(
/*
* Initialize the other data members of the class.
*/
memcpy
(
&
This
->
clsid
,
clsid
,
sizeof
(
CLSID
))
;
This
->
clsid
=
*
clsid
;
This
->
clientSite
=
NULL
;
This
->
oleAdviseHolder
=
NULL
;
This
->
dataAdviseHolder
=
NULL
;
...
...
dlls/ole32/errorinfo.c
View file @
4971f2f6
...
...
@@ -250,7 +250,7 @@ static HRESULT WINAPI IErrorInfoImpl_GetGUID(
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(count=%u)
\n
"
,
This
,
This
->
ref
);
if
(
!
pGUID
)
return
E_INVALIDARG
;
memcpy
(
pGUID
,
&
This
->
m_Guid
,
sizeof
(
GUID
))
;
*
pGUID
=
This
->
m_Guid
;
return
S_OK
;
}
...
...
@@ -354,7 +354,7 @@ static HRESULT WINAPI ICreateErrorInfoImpl_SetGUID(
{
ErrorInfoImpl
*
This
=
impl_from_ICreateErrorInfo
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_guid
(
rguid
));
memcpy
(
&
This
->
m_Guid
,
rguid
,
sizeof
(
GUID
))
;
This
->
m_Guid
=
*
rguid
;
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