aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <Dan Kennedy>2021-08-26 21:12:07 +0000
committerdan <Dan Kennedy>2021-08-26 21:12:07 +0000
commitee7c667a364035db0ca9ced959b918e6ed40d7bf (patch)
tree09ea26db67949c1324dc22c857c4882ee00911fb /src
parent101a6b87c79f83dcc08cd513f3fc30bbe808962c (diff)
downloadsqlite-ee7c667a364035db0ca9ced959b918e6ed40d7bf.tar.gz
sqlite-ee7c667a364035db0ca9ced959b918e6ed40d7bf.zip
Change the structuree exception handler in wal.c to catch EXCEPTION_IN_PAGE_ERROR instead of EXCEPTION_ACCESS_VIOLATION.
FossilOrigin-Name: 0c6ab539cfbc908550fa993a587e85d644b6335853ff9781caae860c461c045d
Diffstat (limited to 'src')
-rw-r--r--src/wal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wal.c b/src/wal.c
index d32e63973..f832e1b01 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -640,7 +640,7 @@ struct WalIterator {
*/
static int sehExceptionFilter(Wal *pWal, int eCode){
VVA_ONLY(pWal->nSehTry--);
- if( eCode==EXCEPTION_ACCESS_VIOLATION ){
+ if( eCode==EXCEPTION_IN_PAGE_ERROR ){
return EXCEPTION_EXECUTE_HANDLER;
}
return EXCEPTION_CONTINUE_SEARCH;
@@ -655,7 +655,7 @@ static int sehExceptionFilter(Wal *pWal, int eCode){
static void sehInjectFault(Wal *pWal){
assert( pWal->nSehTry>0 );
if( sqlite3FaultSim(650) ){
- RaiseException(EXCEPTION_ACCESS_VIOLATION, 0, 0, NULL);
+ RaiseException(EXCEPTION_IN_PAGE_ERROR, 0, 0, NULL);
}
}