From c2599478b63e253a4f3651ae9c11a7d6f5790635 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 29 Mar 2008 11:37:15 +0000 Subject: [PATCH] ole32: Assign to structs instead of using CopyMemory. --- dlls/ole32/ole2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index b34235b198b..5cee7a1e9fe 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2811,7 +2811,7 @@ HRESULT WINAPI PropVariantCopy(PROPVARIANT *pvarDest, /* [out] */ return hr; /* this will deal with most cases */ - CopyMemory(pvarDest, pvarSrc, sizeof(*pvarDest)); + *pvarDest = *pvarSrc; switch(pvarSrc->vt) { @@ -2825,7 +2825,7 @@ HRESULT WINAPI PropVariantCopy(PROPVARIANT *pvarDest, /* [out] */ break; case VT_CLSID: pvarDest->u.puuid = CoTaskMemAlloc(sizeof(CLSID)); - CopyMemory(pvarDest->u.puuid, pvarSrc->u.puuid, sizeof(CLSID)); + *pvarDest->u.puuid = *pvarSrc->u.puuid; break; case VT_LPSTR: len = strlen(pvarSrc->u.pszVal);