Fix socket implementation on Windows.

2011-02-03  Marcus Brinkmann  <marcus@g10code.com>

        * w32-io.c (_gpgme_io_socket): Return fd, not res.
This commit is contained in:
Marcus Brinkmann 2011-02-03 12:38:28 +01:00
parent 129741d2f7
commit 2bdbe88822
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-02-03 Marcus Brinkmann <marcus@g10code.com>
* w32-io.c (_gpgme_io_socket): Return fd, not res.
2011-02-02 Marcus Brinkmann <mb@g10code.com>
* assuan-support.c (my_socket, my_connect): New functions.

View File

@ -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;
}