X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fwindows%2Fos-socket.h;h=5174cba1aaa5e5db4535a345a844c10d005d47b2;hb=ebefc26c10d68ba9ced2a30c896dccc81c6c2eeb;hp=86750c50b9bc4e51d5abe56d8ee8a09f253a4341;hpb=5347b94bbd7455453754fd79b6aaa64aa368ce59;p=deb_libcec.git diff --git a/src/lib/platform/windows/os-socket.h b/src/lib/platform/windows/os-socket.h index 86750c5..5174cba 100644 --- a/src/lib/platform/windows/os-socket.h +++ b/src/lib/platform/windows/os-socket.h @@ -95,8 +95,6 @@ namespace PLATFORM inline ssize_t SerialSocketRead(serial_socket_t socket, int *iError, void* data, size_t len, uint64_t iTimeoutMs /*= 0*/) { - *iError = 0; - if (len != (DWORD)len) { *iError = EINVAL;