Make compatible with the new win32.SetThreadDescription

The second argument is changed to a cstring16.
This commit is contained in:
WP. Yingamphol
2025-12-07 22:09:49 +07:00
committed by GitHub
parent 6e8bd908da
commit f736047df4

View File

@@ -185,6 +185,6 @@ _set_name :: proc(thread: ^Thread) {
buf: [_THREAD_DESCRIPTION_LENGTH]u16
// _THREAD_DESCRIPTION_LENGTH includes terminating null
utf16.encode_string(buf[:len(buf) - 1], name)
win32.SetThreadDescription(t_handle, raw_data(buf[:]))
win32.SetThreadDescription(t_handle, cstring16(buf))
}