Browse Source

fix: read file from windows was not returning platform error correctly

José Rey Méndez 2 years ago
parent
commit
10f2136675
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os2/file_windows.odin

+ 1 - 1
core/os/os2/file_windows.odin

@@ -287,7 +287,7 @@ _read :: proc(f: ^File, p: []byte) -> (n: int, err: Error) {
 		}
 		}
 	}
 	}
 
 
-	return int(total_read), nil
+	return int(total_read), err
 }
 }
 
 
 _read_at :: proc(f: ^File, p: []byte, offset: i64) -> (n: int, err: Error) {
 _read_at :: proc(f: ^File, p: []byte, offset: i64) -> (n: int, err: Error) {