msvc_sink: string_view_t from memory_buf_t

pull/2651/head
璀境石 3 years ago
parent 5e5d455bd7
commit 21779fe84d

@ -48,7 +48,7 @@ protected:
formatted.push_back('\0'); // add a null terminator for OutputDebugString formatted.push_back('\0'); // add a null terminator for OutputDebugString
#if defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) #if defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)
wmemory_buf_t wformatted; wmemory_buf_t wformatted;
details::os::utf8_to_wstrbuf({formatted.data(), formatted.size()}, wformatted); details::os::utf8_to_wstrbuf(string_view_t(formatted.data(), formatted.size()), wformatted);
OutputDebugStringW(wformatted.data()); OutputDebugStringW(wformatted.data());
#else #else
OutputDebugStringA(formatted.data()); OutputDebugStringA(formatted.data());

Loading…
Cancel
Save