[Bug 10452] New: CreateFile with OPEN_ALWAYS should return ERROR_ALREADY_EXISTS on existent file
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Nov 14 05:18:19 CST 2007
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 at winehq.org
ReportedBy: Paolo.Gallerani at 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.
More information about the wine-bugs
mailing list