mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-28 19:36:04 +03:00
Blind check-in of changes to fix #2294 - I have no ability to test.
Gentle wince users: please test this change and if it works leave a remark on the #2294 ticket. Tnx. (CVS 3836) FossilOrigin-Name: ca56c3e2250eda0b312ab6f801b0fd95fb136bfa
This commit is contained in:
10
src/os_win.c
10
src/os_win.c
@@ -408,6 +408,12 @@ static void winceDestroyLock(winFile *pFile){
|
||||
UnmapViewOfFile(pFile->shared);
|
||||
CloseHandle(pFile->hShared);
|
||||
|
||||
if( pFile->zDeleteOnClose ){
|
||||
DeleteFileW(pFile->zDeleteOnClose);
|
||||
sqliteFree(pFile->zDeleteOnClose);
|
||||
pFile->zDeleteOnClose = 0;
|
||||
}
|
||||
|
||||
/* Done with the mutex */
|
||||
winceMutexRelease(pFile->hMutex);
|
||||
CloseHandle(pFile->hMutex);
|
||||
@@ -975,10 +981,6 @@ static int winClose(OsFile **pId){
|
||||
}while( rc==0 && cnt++ < MX_CLOSE_ATTEMPT && (Sleep(100), 1) );
|
||||
#if OS_WINCE
|
||||
winceDestroyLock(pFile);
|
||||
if( pFile->zDeleteOnClose ){
|
||||
DeleteFileW(pFile->zDeleteOnClose);
|
||||
sqliteFree(pFile->zDeleteOnClose);
|
||||
}
|
||||
#endif
|
||||
OpenCounter(-1);
|
||||
sqliteFree(pFile);
|
||||
|
||||
Reference in New Issue
Block a user