From 2bdbe888228ce09f15be4773800ed13263a8e43e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 3 Feb 2011 12:38:28 +0100 Subject: [PATCH] Fix socket implementation on Windows. 2011-02-03 Marcus Brinkmann * w32-io.c (_gpgme_io_socket): Return fd, not res. --- src/ChangeLog | 4 ++++ src/w32-io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 73a62fe..4afcdf9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-02-03 Marcus Brinkmann + + * w32-io.c (_gpgme_io_socket): Return fd, not res. + 2011-02-02 Marcus Brinkmann * assuan-support.c (my_socket, my_connect): New functions. diff --git a/src/w32-io.c b/src/w32-io.c index 10e0dad..56a05c4 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -2035,7 +2035,7 @@ _gpgme_io_socket (int domain, int type, int proto) TRACE_SUC2 ("socket=0x%x (0x%x)", fd, fd_table[fd].socket); - return res; + return fd; } -- 2.26.2