Another Windows build fix.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 May 2017 21:32:18 +0000 (22:32 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 May 2017 21:32:18 +0000 (22:32 +0100)
src/lib/cross.cc

index 3c0103b1445a98ef0bd090a571a0a047dad705b4..46666780330ceb8d599fbfc59558d68006795ce0 100644 (file)
@@ -416,7 +416,7 @@ avio_open_boost (AVIOContext** s, boost::filesystem::path file, int flags)
 #ifdef DCPOMATIC_WINDOWS
        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);
+       WideCharToMultiByte (CP_UTF8, 0, file.c_str(), -1, utf8, length, 0, 0);
        int const r = avio_open_boost (s, file.c_str(), flags);
        delete[] utf8;
        return r;