1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-28 19:36:04 +03:00

Bug fix in the WinCE bindings. (CVS 3015)

FossilOrigin-Name: c57922838a31b45f69ba14ae13df8a612884cb4b
This commit is contained in:
drh
2006-01-23 22:15:07 +00:00
parent 2a3e4a714c
commit 36a5005946
3 changed files with 9 additions and 10 deletions

View File

@@ -667,6 +667,7 @@ int sqlite3WinOpenExclusive(const char *zFilename, OsFile **pId, int delFlag){
f.h = h;
#if OS_WINCE
f.zDeleteOnClose = delFlag ? utf8ToUnicode(zFilename) : 0;
f.hMutex = NULL;
#endif
TRACE3("OPEN EX %d \"%s\"\n", h, zFilename);
return allocateWinFile(&f, pId);
@@ -714,6 +715,7 @@ int sqlite3WinOpenReadOnly(const char *zFilename, OsFile **pId){
f.h = h;
#if OS_WINCE
f.zDeleteOnClose = 0;
f.hMutex = NULL;
#endif
TRACE3("OPEN RO %d \"%s\"\n", h, zFilename);
return allocateWinFile(&f, pId);
@@ -1302,9 +1304,6 @@ int allocateWinFile(winFile *pInit, OsFile **pId){
pNew->pMethod = &sqlite3WinIoMethod;
pNew->locktype = NO_LOCK;
pNew->sharedLockByte = 0;
#if OS_WINCE
pNew->hMutex = NULL;
#endif
*pId = (OsFile*)pNew;
OpenCounter(+1);
return SQLITE_OK;