All reads are binary in libfat, doing the same here.

This commit is contained in:
evilynux 2007-02-14 04:47:16 +00:00
parent cc81b6a215
commit 5925b937db
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ u16 fread_buffered(int dirent,u32 cluster,u32 offset) {
fatstring_to_asciiz(dirent,fname,NULL);
strncat(fpath,fname,256-strlen(fpath));
hFile = fopen(fpath, "r");
hFile = fopen(fpath, "rb");
if (!hFile)
return 0;
fread(&freadBuffer, 1, 512, hFile);