Index: base/profiler/native_stack_sampler_win.cc |
diff --git a/base/profiler/native_stack_sampler_win.cc b/base/profiler/native_stack_sampler_win.cc |
index 167dc25e0a9364350a7c90c2336f925650382431..7b41fee4fd50d5478f5bc1e92c5601d40ca2aaf1 100644 |
--- a/base/profiler/native_stack_sampler_win.cc |
+++ b/base/profiler/native_stack_sampler_win.cc |
@@ -148,7 +148,7 @@ int RecordStack(CONTEXT* context, int max_stack_size, |
for (; (i < max_stack_size) && context->Rip; ++i) { |
instruction_pointers[i] = reinterpret_cast<const void*>(context->Rip); |
if (!frame_unwinder.TryUnwind(context, &modules[i])) |
- return i + 1; |
+ return i; |
} |
return i; |
#else |