dbghelp: Assign to struct instead of using memcpy

Andrew Talbot andrew.talbot at talbotville.com
Fri Feb 29 09:54:59 CST 2008


Changelog:
    dbghelp: Assign to struct instead of using memcpy.

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-patches mailing list