More thorough use of O_BINARY.

This commit is contained in:
Markus F.X.J. Oberhumer
2016-10-07 15:04:12 +02:00
parent 42206364e5
commit ed900b0476
6 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ bool file_exists(const char *name)
struct stat st;
/* return true if we can open it */
fd = open(name, O_RDONLY, 0);
fd = open(name, O_RDONLY | O_BINARY, 0);
if (fd >= 0)
{
(void) close(fd);