summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 23:25:56 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 23:25:56 (GMT)
commitc5683c9a63325baac11524c2d3fdda0958598ef8 (patch)
tree07cc92ae3c085a5d413bc9589a77e234fb6de36a /win32/win32.c
parent9f675c5b0a42c311887b3c5e56202c1684428278 (diff)
win32.c: fix function pointer
* win32/win32.c (rb_w32_set_thread_description): fix the condition if the API function pointer is found. [ruby-core:82494] [Bug #13845] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 7a7d84e..2f0df85 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;