diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SFileReadFile.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/SFileReadFile.cpp b/src/SFileReadFile.cpp index a9d070f..192d212 100644 --- a/src/SFileReadFile.cpp +++ b/src/SFileReadFile.cpp @@ -886,10 +886,9 @@ DWORD WINAPI SFileSetFilePointer(HANDLE hFile, LONG lFilePos, LONG * plFilePosHi if(!FileStream_Read(hf->pStream, &NewPosition, NULL, 0)) return SFILE_INVALID_POS; } - else - { - hf->dwFilePos = (DWORD)NewPosition; - } + + // Also, store the new file position to the TMPQFile struct + hf->dwFilePos = (DWORD)NewPosition; // Return the new file position if(plFilePosHigh != NULL) |