now open files in binary mode on windows (thanks to philip for catching this)
This was SVN commit r661.
This commit is contained in:
parent
fc30c305f4
commit
226fd70292
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user