diff --git a/win32/win32.c b/win32/win32.c index 9243d6a293..7a7d84ef06 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -7881,8 +7881,7 @@ rb_w32_set_thread_description_str(HANDLE th, VALUE name) WCHAR *s; if (NIL_P(name)) { - rb_w32_set_thread_description(th, L""); - return; + return rb_w32_set_thread_description(th, L""); } s = (WCHAR *)StringValueCStr(name); idx = rb_enc_get_index(name);