🐛 Fix file open on Windows

This commit is contained in:
C-3PO 2019-07-22 21:42:27 +02:00
parent 8702752b0e
commit fd67099a1a
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -12,7 +12,7 @@
void initFileReader(char path[], unsigned long offset) {
file.name = path;
file.filePointer = fopen(file.name, "r");
file.filePointer = fopen(file.name, "rb");
if (file.filePointer == NULL) {
fprintf(stderr, "Could not open file \"%s\" for reading: %s\n", file.name, strerror(errno));
errorAndExit();