undeclared mem_err

This commit is contained in:
Laytan Laats
2026-07-26 17:39:40 +02:00
parent a17aefac58
commit ed0166bd16

View File

@@ -97,10 +97,8 @@ _resolve :: proc(bt: Capture, allocator, temp_allocator: runtime.Allocator) -> (
lineInfo: win.IMAGEHLP_LINE64
lineInfo.SizeOfStruct = size_of(lineInfo)
if win.SymGetLineFromAddrW64(process, win.DWORD64(bt[i]), &{}, &lineInfo) {
line.file_path, mem_err = win.wstring_to_utf8(lineInfo.FileName, len(lineInfo.FileName), allocator)
if mem_err != nil {
line.file_path = OOM_MARKER
}
file_name, mem_err := win.wstring_to_utf8(lineInfo.FileName, len(lineInfo.FileName), allocator)
line.file_path = mem_err == nil ? file_name : OOM_MARKER
line.line = i32(lineInfo.LineNumber)
} else {
location := strings.builder_make(allocator)