diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-15 08:07:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-15 08:07:42 +0200 |
| commit | c8ded80037ab5c3c105b33f719f87c586af93760 (patch) | |
| tree | fc4ac5fada08520157002a361c97622a4597105d /src/lib/cross_windows.cc | |
| parent | 444db4d05ec48a1dfe2b0bd1903dd1d04eec1fd2 (diff) | |
Fix compile for Windows, broken in 44b69f2d.
Diffstat (limited to 'src/lib/cross_windows.cc')
| -rw-r--r-- | src/lib/cross_windows.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc index 01bbe521d..23adc23b1 100644 --- a/src/lib/cross_windows.cc +++ b/src/lib/cross_windows.cc @@ -357,7 +357,7 @@ wchar_to_utf8 (wchar_t const * s) int const length = (wcslen(s) + 1) * 2; std::vector<char> utf8(length); WideCharToMultiByte (CP_UTF8, 0, s, -1, utf8.data(), length, 0, 0); - string u (utf8); + string u (utf8.data()); return u; } |
