From 6733c6bad0648c48d0878d59e7431d9e3b579ffe Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Thu, 14 Feb 2008 22:02:25 +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 4eec39f6f03..d6b2b2575c6 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; -- 2.11.4.GIT