diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-10-15 10:13:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-10-15 10:14:26 +0200 |
| commit | b6f681b802642ba38625a4d574c0a9e4f630fa3d (patch) | |
| tree | d27b2501146db8a8f05b9c243ee381851e4cd3ab /src | |
| parent | 2b9ba5022f388c1c415f97a2ba8738c054ea7f92 (diff) | |
Fix confusing error in windows where it would complain about : in full pathnames if creating a directory failed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 3ba9ceb9d..c35f7f09e 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -505,7 +505,7 @@ private: } catch (boost::filesystem::filesystem_error& e) { #ifdef DCPOMATIC_WINDOWS string bad_chars = "<>:\"/|?*"; - string const filename = d->path().string(); + string const filename = d->path().filename().string(); string found_bad_chars; for (size_t i = 0; i < bad_chars.length(); ++i) { if (filename.find(bad_chars[i]) != string::npos && found_bad_chars.find(bad_chars[i]) == string::npos) { |
