diff options
| author | laytan <laytanlaats@hotmail.com> | 2025-12-20 18:31:48 +0100 |
|---|---|---|
| committer | laytan <laytanlaats@hotmail.com> | 2025-12-20 18:31:48 +0100 |
| commit | ca1bb09e97555c6324a1c86720ee9b666a73de71 (patch) | |
| tree | 060654ac552ec176c5e417369262567db48f6932 | |
| parent | 60130b87b08b3bafe4734659fbf2148c792de78b (diff) | |
os/os2: fix stale errors on windows when reading from console
| -rw-r--r-- | core/os/os2/file_windows.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/os2/file_windows.odin b/core/os/os2/file_windows.odin index 0d2f28642..22574ab2f 100644 --- a/core/os/os2/file_windows.odin +++ b/core/os/os2/file_windows.odin @@ -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) } |