mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-01 15:56:59 +00:00
Wrong access and share flags when opening a file for writing (not creation) on Windows.
This commit is contained in:
parent
937b885057
commit
240da1ffb1
@ -276,9 +276,9 @@ mm_file_io_c::mm_file_io_c(const string &path,
|
||||
disposition = OPEN_EXISTING;
|
||||
break;
|
||||
case MODE_WRITE:
|
||||
access_mode = GENERIC_WRITE;
|
||||
share_mode = 0;
|
||||
disposition = OPEN_ALWAYS;
|
||||
access_mode = GENERIC_WRITE | GENERIC_READ;
|
||||
share_mode = FILE_SHARE_READ | FILE_SHARE_WRITE;
|
||||
disposition = OPEN_EXISTING;
|
||||
break;
|
||||
case MODE_SAFE:
|
||||
access_mode = GENERIC_WRITE | GENERIC_READ;
|
||||
|
Loading…
Reference in New Issue
Block a user