1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Correct typo in the Win32 interface for lsm1.

FossilOrigin-Name: 1b4facb1ad0085aa52e63d4d432179467ddc2a69b668d49d86e65ead66a73f57
This commit is contained in:
mistachkin
2017-06-29 15:57:42 +00:00
parent 01e6d540a7
commit c2586f77ad
3 changed files with 10 additions and 10 deletions

View File

@ -703,7 +703,8 @@ int lsmWin32OsShmMap(lsm_file *pFile, int iChunk, int sz, void **ppShm){
if( pWin32File->apShm[iChunk]==NULL ){
LPVOID pMap;
pMap = MapViewOfFile(pWin32File->ahShm[iChunk],
FILE_MAP_WRITE | FILE_MAP_READ, 0, 0, (SIZE_T)sz);
FILE_MAP_WRITE | FILE_MAP_READ, 0, (DWORD)(iChunk*sz),
(SIZE_T)sz);
if( pMap==NULL ){
return LSM_IOERR_BKPT;
}