Windows build fixes.
authorCarl Hetherington <cth@carlh.net>
Fri, 4 Oct 2013 13:30:25 +0000 (14:30 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 4 Oct 2013 13:30:25 +0000 (14:30 +0100)
src/tools/dcpomatic.cc

index 86886ed9e294e184e45407f4f3f1c258966e1bfb..7646d5ebedeb14587fe42998cd6b92d51d6c0db3 100644 (file)
@@ -502,7 +502,7 @@ private:
                                        
                                        boost::filesystem::path zip_file = boost::filesystem::temp_directory_path ();
                                        zip_file /= boost::filesystem::unique_path().string() + ".zip";
-                                       struct zip* zip = zip_open (zip_file.c_str(), ZIP_CREATE | ZIP_EXCL, 0);
+                                       struct zip* zip = zip_open (zip_file.string().c_str(), ZIP_CREATE | ZIP_EXCL, 0);
                                        if (!zip) {
                                                throw FileError ("could not create ZIP file", zip_file);
                                        }
@@ -540,7 +540,7 @@ private:
                                        boost::algorithm::replace_all (body, "$DCP_NAME", film->dcp_name ());
                                        
                                        quickmail_set_body (mail, body.c_str());
-                                       quickmail_add_attachment_file (mail, zip_file.c_str());
+                                       quickmail_add_attachment_file (mail, zip_file.string().c_str());
                                        char const* error = quickmail_send (mail, Config::instance()->mail_server().c_str(), 25, "", "");
                                        if (error) {
                                                quickmail_destroy (mail);