Try to fix windows build.
authorCarl Hetherington <cth@carlh.net>
Tue, 15 Dec 2015 20:35:32 +0000 (20:35 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 15 Dec 2015 20:35:32 +0000 (20:35 +0000)
src/lib/cross.cc

index 7cb5b3e8eed1bbaf7af853f7e1f792e60bccd8cb..86648b23cbe1f14c42bf5a1811d50798e7a38b6f 100644 (file)
@@ -388,6 +388,9 @@ start_batch_converter (boost::filesystem::path dcpomatic)
 
        PROCESS_INFORMATION process_info;
        ZeroMemory (&process_info, sizeof (process_info));
-       CreateProcess (0, batch.string().c_str(), 0, 0, FALSE, 0, 0, 0, &startup_info, &process_info);
+
+       wchar_t cmd[512];
+       MultiByteToWideChar (CP_UTF8, 0, batch.string().c_str(), -1, cmd, sizeof(cmd));
+       CreateProcess (0, cmd, 0, 0, FALSE, 0, 0, 0, &startup_info, &process_info);
 #endif
 }