diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-28 23:25:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-28 23:25:56 +0000 |
commit | c5683c9a63325baac11524c2d3fdda0958598ef8 (patch) | |
tree | 07cc92ae3c085a5d413bc9589a77e234fb6de36a /win32 | |
parent | 9f675c5b0a42c311887b3c5e56202c1684428278 (diff) | |
download | ruby-c5683c9a63325baac11524c2d3fdda0958598ef8.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.c | 2 |
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; |