dbghelp: Assign to struct instead of using memcpy

Andrew Talbot andrew.talbot at talbotville.com
Thu Feb 14 16:02:25 CST 2008


Changelog:
    dbghelp: Assign to struct instead of using memcpy.

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;



More information about the wine-patches mailing list