diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-12 21:55:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-12 21:55:50 +0100 |
| commit | 8cf48ff743f03b55dbee641f002b99fe97d74f49 (patch) | |
| tree | 3f54fcf3d090b072e6df9f16ca40bbe47a8443f0 /src | |
| parent | a1dfa9a33c72c1e9534593bc37de636fd7ddd28e (diff) | |
Fix windows build again.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cross.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index a484d1738..3c0103b14 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -414,7 +414,7 @@ int avio_open_boost (AVIOContext** s, boost::filesystem::path file, int flags) { #ifdef DCPOMATIC_WINDOWS - int const length = (file.length() + 1) * 2; + int const length = (file.string().length() + 1) * 2; char* utf8 = new char[length]; WideCharToMultibyte (CP_UTF8, 0, file.c_str(), -1, utf8, length, 0, 0); int const r = avio_open_boost (s, file.c_str(), flags); |
