mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Reverting check-in (3836) at the request of winCE users. We no ability
to test this change. Presumably this is a fix for tickets #2698, #2533, and #2598. It is unclear if this causes #2294 to be reopened or not. (CVS 4478) FossilOrigin-Name: 27346fa55ed9b5c20016d07a37268fbd42dc097f
This commit is contained in:
10
src/os_win.c
10
src/os_win.c
@@ -431,12 +431,6 @@ static void winceDestroyLock(winFile *pFile){
|
||||
UnmapViewOfFile(pFile->shared);
|
||||
CloseHandle(pFile->hShared);
|
||||
|
||||
if( pFile->zDeleteOnClose ){
|
||||
DeleteFileW(pFile->zDeleteOnClose);
|
||||
free(pFile->zDeleteOnClose);
|
||||
pFile->zDeleteOnClose = 0;
|
||||
}
|
||||
|
||||
/* Done with the mutex */
|
||||
winceMutexRelease(pFile->hMutex);
|
||||
CloseHandle(pFile->hMutex);
|
||||
@@ -613,6 +607,10 @@ static int winClose(sqlite3_file *id){
|
||||
}while( rc==0 && cnt++ < MX_CLOSE_ATTEMPT && (Sleep(100), 1) );
|
||||
#if OS_WINCE
|
||||
winceDestroyLock(pFile);
|
||||
if( pFile->zDeleteOnClose ){
|
||||
DeleteFileW(pFile->zDeleteOnClose);
|
||||
free(pFile->zDeleteOnClose);
|
||||
}
|
||||
#endif
|
||||
OpenCounter(-1);
|
||||
return rc ? SQLITE_OK : SQLITE_IOERR;
|
||||
|
||||
Reference in New Issue
Block a user