Merge pull request #6044 from laytan/fix-windows-read-console-stale-errors

os/os2: fix stale errors on windows when reading from console
This commit is contained in:
Laytan
2025-12-20 19:39:59 +01:00
committed by GitHub

View File

@@ -378,6 +378,7 @@ _read_internal :: proc(f: ^File_Impl, p: []byte) -> (n: i64, err: Error) {
if cerr != nil {
return i64(total_read), cerr
}
ok = true
} else {
ok = win32.ReadFile(handle, &p[total_read], to_read, &single_read_length, nil)
}