Andrew Talbot : hlink: Assign to struct instead of using memcpy.
Module: wine Branch: master Commit: ad606f4d260833f7051ed5bcdd991c55e999adad URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad606f4d260833f7051ed5bcdd... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Fri Feb 29 10:44:01 2008 +0000 hlink: Assign to struct instead of using memcpy. --- dlls/hlink/link.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/hlink/link.c b/dlls/hlink/link.c index 1720006..ca9f12c 100644 --- a/dlls/hlink/link.c +++ b/dlls/hlink/link.c @@ -602,7 +602,7 @@ static HRESULT WINAPI IPersistStream_fnGetClassID(IPersistStream* iface, { HlinkImpl *This = HlinkImpl_from_IPersistStream(iface); TRACE("(%p)\n", This); - memcpy(pClassID, &CLSID_StdHlink, sizeof(CLSID)); + *pClassID = CLSID_StdHlink; return S_OK; }
participants (1)
-
Alexandre Julliard