Andrew Talbot : mapi32: Assign to structs instead of using memcpy.

Alexandre Julliard julliard at winehq.org
Wed Mar 5 06:24:10 CST 2008


Module: wine
Branch: master
Commit: 18f78c721f6c049c143d6e7329c96f6f5dc14fc4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=18f78c721f6c049c143d6e7329c96f6f5dc14fc4

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Tue Mar  4 22:30:32 2008 +0000

mapi32: Assign to structs instead of using memcpy.

---

 dlls/mapi32/prop.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mapi32/prop.c b/dlls/mapi32/prop.c
index 18e8013..e30a83b 100644
--- a/dlls/mapi32/prop.c
+++ b/dlls/mapi32/prop.c
@@ -83,7 +83,7 @@ SCODE WINAPI PropCopyMore(LPSPropValue lpDest, LPSPropValue lpSrc,
     case PT_CLSID:
         scode = lpMore(sizeof(GUID), lpOrig, (LPVOID*)&lpDest->Value.lpguid);
         if (SUCCEEDED(scode))
-            memcpy(lpDest->Value.lpguid, lpSrc->Value.lpguid, sizeof(GUID));
+            *lpDest->Value.lpguid = *lpSrc->Value.lpguid;
         break;
     case PT_STRING8:
         ulLen = lstrlenA(lpSrc->Value.lpszA) + 1u;
@@ -810,7 +810,7 @@ SCODE WINAPI ScCopyProps(int cValues, LPSPropValue lpProps, LPVOID lpDst, ULONG
         {
         case PT_CLSID:
             lpDest->Value.lpguid = (LPGUID)lpDataDest;
-            memcpy(lpDest->Value.lpguid, lpProps->Value.lpguid, sizeof(GUID));
+            *lpDest->Value.lpguid = *lpProps->Value.lpguid;
             lpDataDest += sizeof(GUID);
             break;
         case PT_STRING8:




More information about the wine-cvs mailing list