Fix CaptureStackTrace with null out_stack_hash

This commit is contained in:
Dr. Chat 2015-12-01 16:49:27 -06:00 committed by Ben Vanik
parent 712a5da64b
commit 1ce6a7580b
1 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,9 @@ class Win32StackWalker : public StackWalker {
size_t CaptureStackTrace(uint64_t* frame_host_pcs, size_t frame_offset,
size_t frame_count,
uint64_t* out_stack_hash) override {
*out_stack_hash = 0;
if (out_stack_hash) {
*out_stack_hash = 0;
}
// Simple method: captures just stack frame PC addresses, optionally
// computing a whole-stack hash.
ULONG back_trace_hash = 0;