diff options
Diffstat (limited to 'src/os_win.c')
-rw-r--r-- | src/os_win.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/os_win.c b/src/os_win.c index c042ac162..739be79b5 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -1456,10 +1456,9 @@ int sqlite3_win32_is_nt(void){ } return osInterlockedCompareExchange(&sqlite3_os_type, 2, 2)==2; #elif SQLITE_TEST -#ifdef SQLITE_ENABLE_SETLK_TIMEOUT - return 1; -#endif - return osInterlockedCompareExchange(&sqlite3_os_type, 2, 2)==2; + return osInterlockedCompareExchange(&sqlite3_os_type, 2, 2)==2 + || osInterlockedCompareExchange(&sqlite3_os_type, 0, 0)==0 + ; #else /* ** NOTE: All sub-platforms where the GetVersionEx[AW] functions are @@ -4339,7 +4338,7 @@ static int winShmLock( int bExcl = ((flags & SQLITE_SHM_EXCLUSIVE) ? 1 : 0); int nMs = 0; #ifdef SQLITE_ENABLE_SETLK_TIMEOUT - nMs = pDbFd->iBusyTimeout + nMs = pDbFd->iBusyTimeout; #endif rc = winLockFileTimeout(p->hShm, ofst+WIN_SHM_BASE, n, bExcl, nMs); if( rc==SQLITE_OK ){ |