From: Carl Hetherington Date: Fri, 12 May 2017 21:32:18 +0000 (+0100) Subject: Another Windows build fix. X-Git-Tag: v2.11.4~13 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=1b18ea4593c469e9f856f9a0909dcc4cdfad7274;p=dcpomatic.git Another Windows build fix. --- diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 3c0103b14..466667803 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -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;