mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-01 03:38:55 +00:00
Make compatible with the new win32.SetThreadDescription
The second argument is changed to a cstring16.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user