aboutsummaryrefslogtreecommitdiff
path: root/src/SFileReadFile.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2018-04-27 13:55:46 +0200
committerGitHub <noreply@github.com>2018-04-27 13:55:46 +0200
commiteecbac1689b1f7ea09c93812ba1f4d51a3436bb7 (patch)
tree4718cffa9d42487b3bb540b7f393d5a3dda1ed49 /src/SFileReadFile.cpp
parent8c9992253dca5861388e54506d40e5cbefaf2485 (diff)
parentfe652fe4a6e02041194a0f1b29a0086bd99fb14d (diff)
Merge pull request #129 from nvs/fix-error-negative-seek
I looked at your proposed changes and yes, they are OK. Thank you for the bugfix.
Diffstat (limited to 'src/SFileReadFile.cpp')
-rw-r--r--src/SFileReadFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SFileReadFile.cpp b/src/SFileReadFile.cpp
index f91d2af..3831165 100644
--- a/src/SFileReadFile.cpp
+++ b/src/SFileReadFile.cpp
@@ -868,6 +868,7 @@ DWORD WINAPI SFileSetFilePointer(HANDLE hFile, LONG lFilePos, LONG * plFilePosHi
if((LONGLONG)DeltaPos < 0)
{
if(NewPosition > FileSize) // Position is negative
+ SetLastError(ERROR_NEGATIVE_SEEK);
return SFILE_INVALID_POS;
}