mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-03 04:38:54 +00:00
fixed windows api and free GetThreadName's allocation
This commit is contained in:
@@ -169,6 +169,7 @@ _get_name :: proc(thread: ^Thread, allocator: runtime.Allocator, loc: runtime.So
|
||||
buf_16: win32.PWSTR
|
||||
win32.GetThreadDescription(t_handle, &buf_16)
|
||||
name = win32.wstring_to_utf8(buf_16, -1, allocator) or_return
|
||||
win32.LocalFree(rawptr(buf_16))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user