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:13:58 +0200 |
| commit | aea3b88c63895121cbb632dfc84755a11cdeffba (patch) | |
| tree | 1a9289b4c37515aec87a139983cbeee8a7c76c53 /src | |
| parent | 6bcbbed0e48a5f0160b4eda807f251a1f13f2006 (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 a9c93e9ac..d207953ce 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -510,7 +510,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) { |
