]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Check for a NULL handle prior to manually calling winClose.
authormistachkin <mistachkin@noemail.net>
Fri, 15 Feb 2013 04:21:01 +0000 (04:21 +0000)
committermistachkin <mistachkin@noemail.net>
Fri, 15 Feb 2013 04:21:01 +0000 (04:21 +0000)
FossilOrigin-Name: 843e1c543aabab8cd62f28742d5818887d36bcb7

manifest
manifest.uuid
src/os_win.c

index 9264eb38e9504bcf82a8475f142c0d6a375882b3..003c2d122c46353e17c9c4e89bd71c4c3daee691 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Verify\sthat\sthe\sschema\shas\snot\schanged\sbefore\srunning\sPRAGMA\stable_info,\nindex_list,\sindex_info,\sand\sforeign_key_list.
-D 2013-02-14T16:16:05.951
+C Check\sfor\sa\sNULL\shandle\sprior\sto\smanually\scalling\swinClose.
+D 2013-02-15T04:21:01.777
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in a48faa9e7dd7d556d84f5456eabe5825dd8a6282
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -161,7 +161,7 @@ F src/os.c e1acdc09ff3ac2412945cca9766e2dcf4675f31c
 F src/os.h 027491c77d2404c0a678bb3fb06286f331eb9b57
 F src/os_common.h 92815ed65f805560b66166e3583470ff94478f04
 F src/os_unix.c dfdc04b126f7b05dcb2e2cc5c1262f98acbb49d9
-F src/os_win.c e27fafe8d04841bbe8d925003a4276b80fb59e73
+F src/os_win.c eabd00b813577d36bd66271cb08dd64ea0589dac
 F src/pager.c 4092c907222cfd451c74fe6bd2fd64b342f7190f
 F src/pager.h 1109a06578ec5574dc2c74cf8d9f69daf36fe3e0
 F src/parse.y 5d5e12772845805fdfeb889163516b84fbb9ae95
@@ -1034,7 +1034,7 @@ F tool/vdbe-compress.tcl f12c884766bd14277f4fcedcae07078011717381
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac
-P ec13544ce336e8a02b34d574ced5912b06c82c0e
-R 2ef63d6ca4f42c051984cca4b5f3160e
-U drh
-Z accaf6a360627091cc9269e7b19cca54
+P 82952d08f3e3aa80a7f51e80dbc89742cb4a09f0
+R 1a81a87cce363420c7383bdc29f10671
+U mistachkin
+Z 6e06285ee204b9b14328949d07dc3790
index 95e36729383bc391c515cc967d9d0b83816f2471..fd8b6d4e7a45bf464be9e12e0e50e1608d627696 100644 (file)
@@ -1 +1 @@
-82952d08f3e3aa80a7f51e80dbc89742cb4a09f0
\ No newline at end of file
+843e1c543aabab8cd62f28742d5818887d36bcb7
\ No newline at end of file
index 59ff6833fa7b962004beeb2dea71b40f0c074b9b..68aba744cb4c2a3f7bd96195ab352ec2d0f161e2 100644 (file)
@@ -2993,7 +2993,7 @@ static void winShmPurge(sqlite3_vfs *pVfs, int deleteFlag){
                  (int)osGetCurrentProcessId(), i,
                  bRc ? "ok" : "failed"));
       }
-      if( p->hFile.h != INVALID_HANDLE_VALUE ){
+      if( p->hFile.h!=NULL && p->hFile.h!=INVALID_HANDLE_VALUE ){
         SimulateIOErrorBenign(1);
         winClose((sqlite3_file *)&p->hFile);
         SimulateIOErrorBenign(0);