http://bugs.winehq.org/show_bug.cgi?id=10452
Summary: CreateFile with OPEN_ALWAYS should return ERROR_ALREADY_EXISTS on existent file Product: Wine Version: 0.9.49. Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: Paolo.Gallerani@elsag.it
Created an attachment (id=9157) --> (http://bugs.winehq.org/attachment.cgi?id=9157) Memory Mapped File Test Source
When I use Create file to create/open file used for File Memory Mapping with a call like: hFile = ::CreateFile(lpImageFileName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, lpFileMappingAttributes, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); on a second run of application (file now exists) GetLastError should return ERROR_ALREADY_EXISTS like it does on Windows XP SP2. See attached Test Application
http://bugs.winehq.org/show_bug.cgi?id=10452
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2007-11-15 01:16:18 --- Thanks for the report. I sent a patch to wine-patches which should address this.
http://bugs.winehq.org/show_bug.cgi?id=10452
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2007-11-16 08:44:35 --- The patch has been committed.
http://bugs.winehq.org/show_bug.cgi?id=10452
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Dan Kegel dank@kegel.com 2008-01-28 05:43:14 --- Closing all RESOLVED FIXED bugs older than four weeks.