Module: wine Branch: master Commit: 6733c6bad0648c48d0878d59e7431d9e3b579ffe URL: http://source.winehq.org/git/wine.git/?a=commit;h=6733c6bad0648c48d0878d59e7...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Feb 14 22:02:25 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 4eec39f..d6b2b25 100644 --- a/dlls/dbghelp/minidump.c +++ b/dlls/dbghelp/minidump.c @@ -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;