X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcross_windows.cc;h=23adc23b16e74eab926b1f44d5586cef91181627;hb=c8ded80037ab5c3c105b33f719f87c586af93760;hp=01bbe521de3c698c5ef1acb3b734652187284eed;hpb=444db4d05ec48a1dfe2b0bd1903dd1d04eec1fd2;p=dcpomatic.git 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 utf8(length); WideCharToMultiByte (CP_UTF8, 0, s, -1, utf8.data(), length, 0, 0); - string u (utf8); + string u (utf8.data()); return u; }