kernel32: fix last error result on CreateFile

Víctor Manuel Álvarez García plusvic at yahoo.com
Fri Mar 17 16:04:56 CST 2006


Greetings,

If CreateFile is called with CREATE_ALWAYS or
OPEN_ALWAYS flags, and the file already exists, the
function should success but the result of GetLastError
after the call must be ERROR_ALREADY_EXISTS. Wine was
not not setting the proper error code and GetLastError
just returned ERROR_SUCCESS.

Wine is great, good work guys!

Here goes my contribution,

Victor Manuel Alvarez Garcia
plusvic at yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: createfile_lasterror.diff
Type: text/x-patch
Size: 790 bytes
Desc: 2752377582-createfile_lasterror.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060317/9583ecc4/createfile_lasterror.diff


More information about the wine-patches mailing list