diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/adlmidi_load.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index d7b1e52..41f1837 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -173,9 +173,8 @@ bool MIDIplay::LoadBank(FileAndMemReader &fr) } // Read complete bank file into the memory - fr.seek(0, SEEK_END); - fsize = fr.tell(); - fr.seek(0, SEEK_SET); + fsize = fr.fileSize(); + fr.seek(0, FileAndMemReader::SET); // Allocate necessary memory block raw_file_data = (char*)malloc(fsize); if(!raw_file_data) |