projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
444db4d
)
Fix compile for Windows, broken in 44b69f2d.
author
Carl Hetherington
<cth@carlh.net>
Fri, 15 Oct 2021 06:07:42 +0000
(08:07 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 15 Oct 2021 06:07:42 +0000
(08:07 +0200)
src/lib/cross_windows.cc
patch
|
blob
|
history
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;
}