diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:55:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:55:19 +0200 |
| commit | 4049ec5e8bdddbc48689521a26bf47236c2b490d (patch) | |
| tree | 6532546b5a1edcd77e8824d8cd854eac13e38c44 /src/lib/film.cc | |
| parent | 5db3eda9c6f0d6b027263c519000997677253504 (diff) | |
Fix a few places where we should use dcp::File::open_error()
to get a more accurate error number on Windows.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index d9ab6e2a3..674add78f 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -2092,7 +2092,7 @@ InfoFileHandle::InfoFileHandle (boost::mutex& mutex, boost::filesystem::path pat , _file(path, read ? "rb" : (dcp::filesystem::exists(path) ? "r+b" : "wb")) { if (!_file) { - throw OpenFileError(path, errno, read ? OpenFileError::READ : (dcp::filesystem::exists(path) ? OpenFileError::READ_WRITE : OpenFileError::WRITE)); + throw OpenFileError(path, _file.open_error(), read ? OpenFileError::READ : (dcp::filesystem::exists(path) ? OpenFileError::READ_WRITE : OpenFileError::WRITE)); } } |
