| Index: snapshot/win/thread_snapshot_win.cc
|
| diff --git a/snapshot/win/thread_snapshot_win.cc b/snapshot/win/thread_snapshot_win.cc
|
| index 7524e455bbffa977b9aca63d0f229524b86ef320..085bd7b9fd6e1c02d1484d0c22c4ff826fab406c 100644
|
| --- a/snapshot/win/thread_snapshot_win.cc
|
| +++ b/snapshot/win/thread_snapshot_win.cc
|
| @@ -41,19 +41,19 @@ bool ThreadSnapshotWin::Initialize(
|
| if (process_reader->Is64Bit()) {
|
| context_.architecture = kCPUArchitectureX86_64;
|
| context_.x86_64 = &context_union_.x86_64;
|
| - InitializeX64Context(process_reader_thread.context, context_.x86_64);
|
| + InitializeX64Context(process_reader_thread.context_native, context_.x86_64);
|
| } else {
|
| context_.architecture = kCPUArchitectureX86;
|
| context_.x86 = &context_union_.x86;
|
| - InitializeX86Context(
|
| - *reinterpret_cast<const WOW64_CONTEXT*>(&process_reader_thread.context),
|
| - context_.x86);
|
| + InitializeX86Context(*reinterpret_cast<const WOW64_CONTEXT*>(
|
| + &process_reader_thread.context_wow64),
|
| + context_.x86);
|
| }
|
| #else
|
| context_.architecture = kCPUArchitectureX86;
|
| context_.x86 = &context_union_.x86;
|
| InitializeX86Context(
|
| - *reinterpret_cast<const CONTEXT*>(&process_reader_thread.context),
|
| + *reinterpret_cast<const CONTEXT*>(&process_reader_thread.context_native),
|
| context_.x86);
|
| #endif // ARCH_CPU_X86_64
|
|
|
|
|