fixed remaining issues in resource file loading.
This commit is contained in:
parent
f3c7e01195
commit
72a2e5d532
4 changed files with 13 additions and 13 deletions
|
|
@ -326,7 +326,7 @@ char *MemoryReader::Gets(char *strbuf, ptrdiff_t len)
|
|||
int BufferingReader::FillBuffer(ptrdiff_t newpos)
|
||||
{
|
||||
if (newpos > Length) newpos = Length;
|
||||
if (newpos < bufferpos) return 0;
|
||||
if (newpos <= bufferpos) return 0;
|
||||
auto read = baseReader->Read(&buf[bufferpos], newpos - bufferpos);
|
||||
bufferpos += read;
|
||||
if (bufferpos == Length)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue