mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
winfile: Allow write-only files to be opened by external programs while MAME still has them open (matches POSIX semantics, useful for log files) [Firehawke]
nw: This was approved by Aaron.
This commit is contained in:
parent
876c2e15b0
commit
9a6193eca6
@ -99,7 +99,7 @@ file_error osd_open(const char *path, UINT32 openflags, osd_file **file, UINT64
|
||||
{
|
||||
disposition = (!is_path_to_physical_drive(path) && (openflags & OPEN_FLAG_CREATE)) ? CREATE_ALWAYS : OPEN_EXISTING;
|
||||
access = (openflags & OPEN_FLAG_READ) ? (GENERIC_READ | GENERIC_WRITE) : GENERIC_WRITE;
|
||||
sharemode = 0;
|
||||
sharemode = FILE_SHARE_READ;
|
||||
}
|
||||
else if (openflags & OPEN_FLAG_READ)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user