1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-01 16:33:02 +01:00

* http.c (write_server): Convert integer to a HANDLE for W32.

Usually there should be no problem, but maybe this is not true
for all W32 versions (2K, NT, XP, ME).
This commit is contained in:
Timo Schulz 2002-02-28 19:28:27 +00:00
parent 20dda47d6c
commit 6be293e24b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-02-28 Timo Schulz <ts@winpt.org>
* http.c (write_server): Convert integer to a HANDLE for W32.
2002-01-27 David Shaw <dshaw@jabberwocky.com>
* iobuf.c (iobuf_fdopen, iobuf_sockopen): Do not cache fdopened

View File

@ -787,8 +787,9 @@ write_server( int sock, const char *data, size_t length )
while( nleft > 0 ) {
#ifdef __MINGW32__
unsigned long nwritten;
HANDLE sock_fd = (HANDLE)sock;
if ( !WriteFile ( sock, data, nleft, &nwritten, NULL)) {
if ( !WriteFile ( sock_fd, data, nleft, &nwritten, NULL)) {
log_info ("write failed: ec=%d\n", (int)GetLastError ());
return G10ERR_NETWORK;
}