1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix another problem in test_vfs.c.

FossilOrigin-Name: df7d59899ceb2743764b0433cb68f4bc33f16344
This commit is contained in:
dan
2010-06-03 19:10:08 +00:00
parent 961ff45104
commit d03f523d3b
3 changed files with 10 additions and 11 deletions

View File

@@ -603,10 +603,9 @@ static int tvfsShmGet(
if( rc==SQLITE_OK && p->mask&TESTVFS_SHMGET_MASK && tvfsInjectIoerr(p) ){
rc = SQLITE_IOERR;
}
if( rc==SQLITE_OK ){
tvfsGrowBuffer(pFd, reqMapSize, pMapSize);
*pp = pFd->pShm->a;
}
*pMapSize = pFd->pShm->n;
*pp = pFd->pShm->a;
return rc;
}