Fix CaptureStackTrace with null out_stack_hash
This commit is contained in:
parent
712a5da64b
commit
1ce6a7580b
|
@ -134,7 +134,9 @@ class Win32StackWalker : public StackWalker {
|
||||||
size_t CaptureStackTrace(uint64_t* frame_host_pcs, size_t frame_offset,
|
size_t CaptureStackTrace(uint64_t* frame_host_pcs, size_t frame_offset,
|
||||||
size_t frame_count,
|
size_t frame_count,
|
||||||
uint64_t* out_stack_hash) override {
|
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
|
// Simple method: captures just stack frame PC addresses, optionally
|
||||||
// computing a whole-stack hash.
|
// computing a whole-stack hash.
|
||||||
ULONG back_trace_hash = 0;
|
ULONG back_trace_hash = 0;
|
||||||
|
|
Loading…
Reference in New Issue