Index: third_party/sqlite/src/src/test_devsym.c |
diff --git a/third_party/sqlite/src/src/test_devsym.c b/third_party/sqlite/src/src/test_devsym.c |
index 21f0f684d861116770defcdecd532ba3eeaba975..9a1ba09d69bc0fc61e0e898c616157bf1bcc473c 100644 |
--- a/third_party/sqlite/src/src/test_devsym.c |
+++ b/third_party/sqlite/src/src/test_devsym.c |
@@ -133,7 +133,8 @@ struct DevsymGlobal g = {0, 0, 512}; |
*/ |
static int devsymClose(sqlite3_file *pFile){ |
devsym_file *p = (devsym_file *)pFile; |
- return sqlite3OsClose(p->pReal); |
+ sqlite3OsClose(p->pReal); |
+ return SQLITE_OK; |
} |
/* |
@@ -395,4 +396,11 @@ void devsym_register(int iDeviceChar, int iSectorSize){ |
} |
} |
+void devsym_unregister(){ |
+ sqlite3_vfs_unregister(&devsym_vfs); |
+ g.pVfs = 0; |
+ g.iDeviceChar = 0; |
+ g.iSectorSize = 0; |
+} |
+ |
#endif |