Jacek Caban : wininet: Removed direct errno usage in ftp.c.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 13 07:55:57 CST 2015
Module: wine
Branch: master
Commit: fdf50ba8832d2bce7bde914e5b3395b010fe33e6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fdf50ba8832d2bce7bde914e5b3395b010fe33e6
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Feb 13 12:11:04 2015 +0100
wininet: Removed direct errno usage in ftp.c.
---
dlls/wininet/ftp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 7f349d3..855e5a8 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -34,7 +34,6 @@
#include <ws2tcpip.h>
#endif
-#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -2586,7 +2585,7 @@ HINTERNET FTP_Connect(appinfo_t *hIC, LPCWSTR lpszServerName,
if (connect(nsocket, (struct sockaddr *)&socketAddr, sock_namelen) < 0)
{
- ERR("Unable to connect (%s)\n", strerror(errno));
+ ERR("Unable to connect (%d)\n", sock_get_error());
INTERNET_SetLastError(ERROR_INTERNET_CANNOT_CONNECT);
closesocket(nsocket);
}
More information about the wine-cvs
mailing list