mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02: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:
parent
20dda47d6c
commit
6be293e24b
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue