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

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

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

Visibility: public

Requested revision: 36c869dc142d3e5466ad0d975419224ff9579f49

Requested commit: 36c869dc142d3e5466ad0d975419224ff9579f49

Commit: 36c869dc142d3e5466ad0d975419224ff9579f49

Tree: 4597c09818a75827b923676fb872a65e3c8acea9

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

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

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