aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2021-03-31 07:33:19 +0200
committerLadislav Zezula <zezula@volny.cz>2021-03-31 07:33:19 +0200
commite482d3847e175a99ba264f421e86df016570ff6d (patch)
treec5676bdacc6fb482ba4d8718c702289951e9d58e /src
parent7b3aadd4999c4c150c7ac8ceed5586b75efc46a1 (diff)
Fixed SFileSetFilePointer on local files
Diffstat (limited to 'src')
-rw-r--r--src/SFileReadFile.cpp7
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)