dbghelp: Assign to struct instead of using memcpy.
This commit is contained in:
parent
cef389c106
commit
6733c6bad0
|
@ -235,7 +235,7 @@ static BOOL fetch_thread_info(struct dump_context* dc, int thd_idx,
|
|||
}
|
||||
else pctx = except->ExceptionPointers->ContextRecord;
|
||||
|
||||
memcpy(ctx, pctx, sizeof(*ctx));
|
||||
*ctx = *pctx;
|
||||
fetch_thread_stack(dc, tbi.TebBaseAddress, pctx, &mdThd->Stack);
|
||||
}
|
||||
else mdThd->SuspendCount = 0;
|
||||
|
|
Loading…
Reference in New Issue