[wininet/ftp.c] Fix some returned error codes

Paul Vriens paul.vriens.wine at gmail.com
Fri Feb 16 10:48:39 CST 2007


Fixes for FtpPutFile[A|W].

The same logic with respect to the order of checks as for FtpGetFile.

I've moved the 'define' to the top as it's now used in 2 functions.

I've also fixed the case for a non-existing local file. Previously the error was
set to "ERROR_FILE_NOT_FOUND" and right after that to "ERROR_INVALID_HANDLE" as
CloseHandle was called with INVALID_HANDLE_VALUE.

The fixes should also please Coverity CID-176 and CID-177.

    Fix some returned error codes



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-some-returned-error-codes.patch
Type: text/x-patch
Size: 7317 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070216/064bc7c3/0002-Fix-some-returned-error-codes.bin

More information about the wine-patches mailing list