Fix windows build again.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 May 2017 20:55:50 +0000 (21:55 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 May 2017 20:55:50 +0000 (21:55 +0100)
src/lib/cross.cc

index a484d17388c523d009e2f3d418cf2f75518bb91e..3c0103b1445a98ef0bd090a571a0a047dad705b4 100644 (file)
@@ -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);