comparison src/event-msw.c @ 986:9b80efded6a5

[xemacs-hg @ 2002-09-01 06:49:49 by youngs] 2002-08-30 Mike Alexander <mta@arbortext.com> * event-msw.c (winsock_closer): Use closesocket, not CloseHandle to close a socket.
author youngs
date Sun, 01 Sep 2002 06:49:50 +0000
parents 8d610ea37af8
children 184461bc8de4
comparison
equal deleted inserted replaced
985:7f62a956b825 986:9b80efded6a5
827 if (lstr->flags & LSTREAM_FL_READ) 827 if (lstr->flags & LSTREAM_FL_READ)
828 shutdown (str->s, 0); 828 shutdown (str->s, 0);
829 else 829 else
830 shutdown (str->s, 1); 830 shutdown (str->s, 1);
831 831
832 CloseHandle ((HANDLE)str->s); 832 closesocket (str->s);
833 if (str->pending_p) 833 if (str->pending_p)
834 WaitForSingleObject (str->ov.hEvent, INFINITE); 834 WaitForSingleObject (str->ov.hEvent, INFINITE);
835 835
836 if (str->buffer) 836 if (str->buffer)
837 { 837 {