mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-15 11:41:13 +03:00
Make sure recursive calls to winOpen() preserve the pVfs pointer.
Fault found while testing a mingw build in VMWare. (CVS 6410) FossilOrigin-Name: 18b44f0df3d75689fb5cee20120eb3c6ae5882b3
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
**
|
||||
** This file contains code that is specific to windows.
|
||||
**
|
||||
** $Id: os_win.c,v 1.151 2009/03/30 12:42:45 drh Exp $
|
||||
** $Id: os_win.c,v 1.152 2009/03/30 13:04:18 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#if SQLITE_OS_WIN /* This file is used for windows only */
|
||||
@@ -1367,7 +1367,7 @@ static int winOpen(
|
||||
if( h==INVALID_HANDLE_VALUE ){
|
||||
free(zConverted);
|
||||
if( flags & SQLITE_OPEN_READWRITE ){
|
||||
return winOpen(0, zName, id,
|
||||
return winOpen(pVfs, zName, id,
|
||||
((flags|SQLITE_OPEN_READONLY)&~SQLITE_OPEN_READWRITE), pOutFlags);
|
||||
}else{
|
||||
return SQLITE_CANTOPEN;
|
||||
|
||||
Reference in New Issue
Block a user