There was an error "couldn't read as many bytes as requested from file"
So I had to change the opening mode from "r" to "rb"
And another one "can't seek in file"
Then I used _fseeki64() instead of fseek()
I'll post the compiled .exe before changes tomorrow if you don't mind
Maybe it's because of the compiler (vs compiler), I guess you are using MinGW