dbghelp: Assign to struct instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-02-29 22:06:16 +00:00 committed by Alexandre Julliard
parent 5625c6079e
commit 53e9e24aa2
1 changed files with 1 additions and 1 deletions

View File

@ -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 +