From 53e9e24aa2894ee439c178866694291d9c281b04 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Fri, 29 Feb 2008 22:06:16 +0000 Subject: [PATCH] dbghelp: Assign to struct instead of using memcpy. --- dlls/dbghelp/minidump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c index d6b2b2575c6..52458f24f01 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 +