Sqlite: repeat fixes from previous commits

GitOrigin-RevId: 1dce19984342f573aaf106180f3e72a399114b26
This commit is contained in:
Arseny Smirnov 2020-08-12 22:49:17 +03:00
parent b9de1b94d2
commit 0ef5577209

View File

@ -31764,6 +31764,9 @@ SQLITE_API extern int sqlite3_open_file_count;
/* #include "windows.h" */
#ifdef __CYGWIN__
# define NOCRYPT
# include <windows.h>
# include <sys/cygwin.h>
/* # include <errno.h> ** amalgamator: dontcache ** */
#endif
@ -51612,6 +51615,9 @@ static int winOpen(
dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE;
// TDLib: fix for TDLib. We will delete an opened database if it is corrupted
dwShareMode |= FILE_SHARE_DELETE;
if( isDelete ){
#if SQLITE_OS_WINCE
dwFlagsAndAttributes = FILE_ATTRIBUTE_HIDDEN;