]> Shamusworld >> Repos - wozmaker/blobdiff - src/fileio.cpp
Cross platform fix: make it so A2R files are readable under Windows.
[wozmaker] / src / fileio.cpp
index d8ff4653da539e4456628739dd74596d857c43e0..ab9344a4e64e82a887a3c60b2e7ee8655d171aea 100644 (file)
@@ -64,7 +64,7 @@ uint32_t CRC32(const uint8_t * data, uint32_t length)
 
 uint8_t * ReadFile(const char * filename, uint32_t * size)
 {
-       FILE * fp = fopen(filename, "r");
+       FILE * fp = fopen(filename, "rb");
 
        if (!fp)
                return NULL;