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(a)winehq.org ReportedBy: Paolo.Gallerani(a)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 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.