Fix invalid type check in win32_set().