From: Carl Hetherington Date: Wed, 3 Jul 2013 23:24:21 +0000 (+0100) Subject: Try to wrap ffprobe paths in quotes (may fix #168). X-Git-Tag: v2.0.48~1337^2~302^2~12 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=78c78cdb5c4c6c62ba98fa54c9ba54812149ef7b Try to wrap ffprobe paths in quotes (may fix #168). --- diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 86b657432..124697fb4 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -117,12 +117,14 @@ run_ffprobe (boost::filesystem::path content, boost::filesystem::path out, share startup_info.dwFlags |= STARTF_USESTDHANDLES; wchar_t command[512]; - wcscpy (command, L"ffprobe.exe "); + wcscpy (command, L"ffprobe.exe \""); wchar_t file[512]; MultiByteToWideChar (CP_UTF8, 0, content.string().c_str(), -1, file, sizeof(file)); wcscat (command, file); + wcscat (command, L"\""); + PROCESS_INFORMATION process_info; ZeroMemory (&process_info, sizeof (process_info)); if (!CreateProcess (0, command, 0, 0, TRUE, CREATE_NO_WINDOW, 0, 0, &startup_info, &process_info)) {