diff options
author | aap <aap@papnet.eu> | 2020-11-11 09:42:30 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-11-11 09:42:30 +0100 |
commit | 546ed0ff07cad63cb07612d8aff8d63213f71ecd (patch) | |
tree | 3d17be9b2b3767a663d73046477fdf4da4e42dc8 /src/core/Streaming.cpp | |
parent | 460f3cea447296cb5757c04108b9ac6becd6c968 (diff) |
changes to RW layer so loading foreign files works
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r-- | src/core/Streaming.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index 3c5689fd..4f721f17 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -390,6 +390,7 @@ CStreaming::LoadCdDirectory(const char *dirname, int n) assert(sizeof(direntry) == 32); while(CFileMgr::Read(fd, (char*)&direntry, sizeof(direntry))){ dot = strchr(direntry.name, '.'); + assert(dot); if(dot) *dot = '\0'; if(direntry.size > (uint32)ms_streamingBufferSize) ms_streamingBufferSize = direntry.size; |