1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Detect errors returned by SetFilePointer on windows. (CVS 2681)

FossilOrigin-Name: bc8c33f94ce069f7bcfc32a59d5c40e034e023b5
This commit is contained in:
drh
2005-09-09 10:17:33 +00:00
parent fd35797469
commit e08b814d72
3 changed files with 10 additions and 7 deletions

View File

@@ -479,6 +479,9 @@ int sqlite3OsSeek(OsFile *id, i64 offset){
SEEK(offset/1024 + 1);
rc = SetFilePointer(id->h, lowerBits, &upperBits, FILE_BEGIN);
TRACE3("SEEK %d %lld\n", id->h, offset);
if( rc==INVALID_SET_FILE_POINTER && GetLastError()!=NO_ERROR ){
return SQLITE_FULL;
}
return SQLITE_OK;
}