Fixed SFileSetFilePointer on local files

This commit is contained in:
Ladislav Zezula
2021-03-31 07:33:19 +02:00
parent 7b3aadd499
commit e482d3847e
2 changed files with 51 additions and 15 deletions

View File

@@ -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)