summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 7a7d84ef06..2f0df85214 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -7868,7 +7868,7 @@ rb_w32_set_thread_description(HANDLE th, const WCHAR *name)
set_thread_description = (set_thread_description_func)
get_proc_address("kernel32", "SetThreadDescription", NULL);
}
- if (set_thread_description != (set_thread_description_func)-1) {
+ if (set_thread_description) {
result = set_thread_description(th, name);
}
return result;