From f8b359b00d0bf38674ce3f94e98bc2aaa3be9f45 Mon Sep 17 00:00:00 2001 From: Joe Mistachkin Date: Thu, 9 Nov 2017 20:37:37 +0000 Subject: [PATCH] Add an assert() in the Win32 VFS. --- src/os_win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os_win.c b/src/os_win.c index 05ae7e67db..aff48e25e9 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -3885,6 +3885,7 @@ static int winGetShmDmsLockType( if( winIsLockConflict(lastErrno) ){ if( pLockType ) *pLockType = WINSHM_WRLCK; }else if( winIsLockMissing(lastErrno) ){ + assert( bReadOnly ); if( pLockType ) *pLockType = WINSHM_UNLCK; }else{ return SQLITE_IOERR_READ; -- 2.11.4.GIT