diff options
Diffstat (limited to 'otherlibs/win32unix/read.c')
-rw-r--r-- | otherlibs/win32unix/read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/read.c b/otherlibs/win32unix/read.c index 2c727173e..704cec2c7 100644 --- a/otherlibs/win32unix/read.c +++ b/otherlibs/win32unix/read.c @@ -34,8 +34,8 @@ CAMLprim value unix_read(value fd, value buf, value ofs, value len) ret = recv(s, iobuf, numbytes, 0); leave_blocking_section(); if (ret == SOCKET_ERROR) { - win32_maperr(WSAGetLastError()); - uerror("read", Nothing); + win32_maperr(WSAGetLastError()); + uerror("read", Nothing); } numread = ret; } else { @@ -45,8 +45,8 @@ CAMLprim value unix_read(value fd, value buf, value ofs, value len) ret = ReadFile(h, iobuf, numbytes, &numread, NULL); leave_blocking_section(); if (! ret) { - win32_maperr(GetLastError()); - uerror("read", Nothing); + win32_maperr(GetLastError()); + uerror("read", Nothing); } } memmove (&Byte(buf, Long_val(ofs)), iobuf, numread); |