# std: Make windows.ReadFile allow short reads · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/9e1e91dafc9857b41a513c6c6506150f1a2f3f7f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 9e1e91dafc9857b41a513c6c6506150f1a2f3f7f

Requested commit: 9e1e91dafc9857b41a513c6c6506150f1a2f3f7f

Commit: 9e1e91dafc9857b41a513c6c6506150f1a2f3f7f

Tree: 6554bf3976f30175494c6655937193b380396de8

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Make windows.ReadFile allow short reads

Make it behave like the read() wrapper for unix systems.
Reading the whole buffer breaks some use-cases like buffered readers
over sockets.

Closes #7121

```

## Parents

- [6624f9cd5c2d747224990fb9ba3e2b830a68f3e4](https://git.cafe/gitcafe/zig/commit/6624f9cd5c2d747224990fb9ba3e2b830a68f3e4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/9e1e91dafc9857b41a513c6c6506150f1a2f3f7f?format=markdown)
