Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/event-msw.c Mon Aug 13 10:43:56 2007 +0200 +++ b/src/event-msw.c Mon Aug 13 10:44:22 2007 +0200 @@ -728,8 +728,11 @@ { ResetEvent (str->ov.hEvent); - - if (WriteFile ((HANDLE)str->s, data, size, NULL, &str->ov) + + /* Docs indicate that 4th parameter to WriteFile can be NULL since this is + * an overlapped operation. This fails on Win95 with winsock 1.x so we + * supply a spare address which is ignored by Win95 anyway. Sheesh. */ + if (WriteFile ((HANDLE)str->s, data, size, (LPDWORD)&str->buffer, &str->ov) || GetLastError() == ERROR_IO_PENDING) str->pending_p = 1; else