From f736047df437d6fd38292e66fff8e0904895dc2b Mon Sep 17 00:00:00 2001 From: "WP. Yingamphol" Date: Sun, 7 Dec 2025 22:09:49 +0700 Subject: [PATCH] Make compatible with the new win32.SetThreadDescription The second argument is changed to a cstring16. --- core/thread/thread_windows.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/thread/thread_windows.odin b/core/thread/thread_windows.odin index 2f5d19b2e..b8fd2bc48 100644 --- a/core/thread/thread_windows.odin +++ b/core/thread/thread_windows.odin @@ -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)) }