aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 23:25:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 23:25:56 +0000
commit0b670687f9cd33ebe621c3b7d36168de7ddbaafc (patch)
tree07cc92ae3c085a5d413bc9589a77e234fb6de36a /win32
parent07466984459f5961ce07f131f96cd434f70705e0 (diff)
downloadruby-0b670687f9cd33ebe621c3b7d36168de7ddbaafc.tar.gz
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')
-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;