diff options
Diffstat (limited to '')
-rw-r--r-- | src/symbol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/symbol.cpp b/src/symbol.cpp index 98ec427..4c271c0 100644 --- a/src/symbol.cpp +++ b/src/symbol.cpp @@ -36,10 +36,10 @@ unsigned long cast_line_number(DWORD impl) { } // namespace -SymbolInfo::SymbolInfo() : buffer{}, impl{*reinterpret_cast<Impl*>(buffer.data())} { +SymbolInfo::SymbolInfo() { buffer.fill(0); - impl.SizeOfStruct = sizeof(Impl); - impl.MaxNameLen = MAX_SYM_NAME; + get_impl().SizeOfStruct = sizeof(Impl); + get_impl().MaxNameLen = MAX_SYM_NAME; } SymbolInfo::SymbolInfo(const Impl& impl) : SymbolInfo{} { |