/ Check-in [40cf0c17]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the open file counter on windows. (CVS 4382)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 40cf0c177635c087b7695a8c4c3b37da57f74425
User & Date: drh 2007-09-03 17:09:03
Context
2007-09-03
17:30
Remove an unreachable case from xferOptimization(). Also other minor test coverage improvements. (CVS 4383) check-in: 75af7189 user: danielk1977 tags: trunk
17:09
Fix the open file counter on windows. (CVS 4382) check-in: 40cf0c17 user: drh tags: trunk
17:02
Get the io.test tests working on windows. (CVS 4381) check-in: 1be70015 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

  1171   1171     if( dwFlagsAndAttributes & FILE_FLAG_DELETEONCLOSE ){
  1172   1172       pFile->zDeleteOnClose = zConverted;
  1173   1173     }else
  1174   1174   #endif
  1175   1175     {
  1176   1176       free(zConverted);
  1177   1177     }
         1178  +  OpenCounter(+1);
  1178   1179     return SQLITE_OK;
  1179   1180   }
  1180   1181   
  1181   1182   /*
  1182   1183   ** Delete the named file.
  1183   1184   **
  1184   1185   ** Note that windows does not allow a file to be deleted if some other