🐛 Fix file open on Windows
This commit is contained in:
parent
8702752b0e
commit
fd67099a1a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
void initFileReader(char path[], unsigned long offset) {
|
void initFileReader(char path[], unsigned long offset) {
|
||||||
file.name = path;
|
file.name = path;
|
||||||
|
|
||||||
file.filePointer = fopen(file.name, "r");
|
file.filePointer = fopen(file.name, "rb");
|
||||||
if (file.filePointer == NULL) {
|
if (file.filePointer == NULL) {
|
||||||
fprintf(stderr, "Could not open file \"%s\" for reading: %s\n", file.name, strerror(errno));
|
fprintf(stderr, "Could not open file \"%s\" for reading: %s\n", file.name, strerror(errno));
|
||||||
errorAndExit();
|
errorAndExit();
|
||||||
|
|
Loading…
Reference in a new issue