mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-09 14:32:41 +00:00
os/os2: fix stale errors on windows when reading from console
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user