Module: wine Branch: master Commit: 7fdcb092b77d6b97f79e7443015f38cef2aeb7d6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7fdcb092b77d6b97f79e744301...
Author: Michael Stefaniuc mstefani@redhat.de Date: Fri Jan 25 10:02:38 2013 +0100
mscoree: Use assignment instead of memcpy to copy a struct.
---
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];