Mercurial > hg > xemacs-beta
comparison src/event-msw.c @ 314:341dac730539 r21-0b55
Import from CVS: tag r21-0b55
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:44:22 +0200 |
parents | 33bdb3d4b97f |
children | 03446687b7cc |
comparison
equal
deleted
inserted
replaced
313:2905de29931f | 314:341dac730539 |
---|---|
726 if (size == 0) | 726 if (size == 0) |
727 return 0; | 727 return 0; |
728 | 728 |
729 { | 729 { |
730 ResetEvent (str->ov.hEvent); | 730 ResetEvent (str->ov.hEvent); |
731 | 731 |
732 if (WriteFile ((HANDLE)str->s, data, size, NULL, &str->ov) | 732 /* Docs indicate that 4th parameter to WriteFile can be NULL since this is |
733 * an overlapped operation. This fails on Win95 with winsock 1.x so we | |
734 * supply a spare address which is ignored by Win95 anyway. Sheesh. */ | |
735 if (WriteFile ((HANDLE)str->s, data, size, (LPDWORD)&str->buffer, &str->ov) | |
733 || GetLastError() == ERROR_IO_PENDING) | 736 || GetLastError() == ERROR_IO_PENDING) |
734 str->pending_p = 1; | 737 str->pending_p = 1; |
735 else | 738 else |
736 str->error_p = 1; | 739 str->error_p = 1; |
737 } | 740 } |