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:
R. Belmont 2013-10-20 05:23:32 +00:00
parent 876c2e15b0
commit 9a6193eca6

View File

@ -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)
{