mscoree: Use assignment instead of memcpy to copy a struct.

Michael Stefaniuc mstefani at redhat.de
Fri Jan 25 03:02:38 CST 2013


---
 dlls/mscoree/corruntimehost.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index da46d61..b4ee38b 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -988,7 +988,7 @@ static void FixupVTableEntry(HMODULE hmodule, VTableFixup *vtable_fixup)
         memcpy(tokens, vtable, sizeof(*tokens) * vtable_fixup->count);
         for (i=0; i<vtable_fixup->count; i++)
         {
-            memcpy(&thunks[i], &thunk_template, sizeof(thunk_template));
+            thunks[i] = thunk_template;
             thunks[i].fixup = fixup;
             thunks[i].function = ReallyFixupVTable;
             thunks[i].vtable_entry = &vtable[i];
-- 
1.7.7.6



More information about the wine-patches mailing list