projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
085fd1d
)
Try to fix windows build.
author
Carl Hetherington
<cth@carlh.net>
Tue, 15 Dec 2015 20:35:32 +0000
(20:35 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 15 Dec 2015 20:35:32 +0000
(20:35 +0000)
src/lib/cross.cc
patch
|
blob
|
history
diff --git
a/src/lib/cross.cc
b/src/lib/cross.cc
index 7cb5b3e8eed1bbaf7af853f7e1f792e60bccd8cb..86648b23cbe1f14c42bf5a1811d50798e7a38b6f 100644
(file)
--- a/
src/lib/cross.cc
+++ b/
src/lib/cross.cc
@@
-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
}