Skip to content

Commit

Permalink
fix the terminating null character from WideCharToMultiByte
Browse files Browse the repository at this point in the history
  • Loading branch information
mengyui committed May 17, 2024
1 parent 064a234 commit 8c3e3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third-party/rsutils/include/rsutils/string/windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inline std::string win_to_utf( const WCHAR * s, int wlen = -1 )

inline std::string win_to_utf( std::wstring const & s )
{
return win_to_utf( s.c_str(), (int) s.length() );
return win_to_utf(s.c_str());
}


Expand Down

0 comments on commit 8c3e3c3

Please sign in to comment.