projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix compile for Windows, broken in 44b69f2d.
[dcpomatic.git]
/
src
/
lib
/
cross_windows.cc
diff --git
a/src/lib/cross_windows.cc
b/src/lib/cross_windows.cc
index 01bbe521de3c698c5ef1acb3b734652187284eed..23adc23b16e74eab926b1f44d5586cef91181627 100644
(file)
--- 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;
}