Fixed sock_read on Windows when returning cero
Fixed coding style