mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Fix Windows infinite recursion with os2._flush
This commit is contained in:
@@ -466,13 +466,13 @@ _file_size :: proc(f: ^File_Impl) -> (n: i64, err: Error) {
|
|||||||
|
|
||||||
_sync :: proc(f: ^File) -> Error {
|
_sync :: proc(f: ^File) -> Error {
|
||||||
if f != nil && f.impl != nil {
|
if f != nil && f.impl != nil {
|
||||||
return _flush((^File_Impl)(f.impl))
|
return _flush_internal((^File_Impl)(f.impl))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
_flush :: proc(f: ^File_Impl) -> Error {
|
_flush :: proc(f: ^File_Impl) -> Error {
|
||||||
return _flush(f)
|
return _flush_internal(f)
|
||||||
}
|
}
|
||||||
_flush_internal :: proc(f: ^File_Impl) -> Error {
|
_flush_internal :: proc(f: ^File_Impl) -> Error {
|
||||||
handle := _handle(&f.file)
|
handle := _handle(&f.file)
|
||||||
|
|||||||
Reference in New Issue
Block a user