Update os-inl.h

This commit is contained in:
Gabi Melman 2023-02-25 19:52:27 +02:00 committed by GitHub
parent a4d8817745
commit 262acfdeb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,7 +511,7 @@ SPDLOG_INLINE void utf8_to_wstrbuf(string_view_t str, wmemory_buf_t &target)
result_size = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str.data(), str_size, target.data(), result_size); result_size = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str.data(), str_size, target.data(), result_size);
if (result_size > 0) if (result_size > 0)
{ {
assert result_size == target.size(); assert(result_size == target.size());
return; return;
} }
} }