Zero n on error in _file_stream_proc

This commit is contained in:
Feoramund
2024-08-19 19:39:59 -04:00
committed by Laytan
parent eb92a2df71
commit 741ccd7ff5

View File

@@ -66,5 +66,8 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
if err == nil && os_err != nil {
err = error_to_io_error(os_err)
}
if err != nil {
n = 0
}
return
}