1
1
forked from 0ad/0ad

now open files in binary mode on windows (thanks to philip for catching this)

This was SVN commit r661.
This commit is contained in:
janwas 2004-07-08 15:10:26 +00:00
parent fc30c305f4
commit 226fd70292

View File

@ -450,6 +450,10 @@ int file_open(const char* const p_fn, const uint flags, File* const f)
size = s.st_size; size = s.st_size;
} }
#ifdef _WIN32
oflag |= O_BINARY;
#endif
int fd = open(n_fn, oflag, S_IRWXO); int fd = open(n_fn, oflag, S_IRWXO);
if(fd < 0) if(fd < 0)
return -1; return -1;