Andrew Talbot : dbghelp: Assign to struct instead of using memcpy.

Alexandre Julliard julliard at winehq.org
Sat Mar 1 06:13:21 CST 2008


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Fri Feb 29 22:06:16 2008 +0000

dbghelp: Assign to struct instead of using memcpy.

---

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

diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c
index d6b2b25..52458f2 100644
--- a/dlls/dbghelp/minidump.c
+++ b/dlls/dbghelp/minidump.c
@@ -644,7 +644,7 @@ static  unsigned        dump_threads(struct dump_context* dc,
             cbin.CallbackType = ThreadCallback;
             cbin.u.Thread.ThreadId = dc->spi->ti[i].dwThreadID;
             cbin.u.Thread.ThreadHandle = 0; /* FIXME */
-            memcpy(&cbin.u.Thread.Context, &ctx, sizeof(CONTEXT));
+            cbin.u.Thread.Context = ctx;
             cbin.u.Thread.SizeOfContext = sizeof(CONTEXT);
             cbin.u.Thread.StackBase = mdThd.Stack.StartOfMemoryRange;
             cbin.u.Thread.StackEnd = mdThd.Stack.StartOfMemoryRange +




More information about the wine-cvs mailing list