/ Check-in [40cf0c17]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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 Unified Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

1171
1172
1173
1174
1175
1176
1177

1178
1179
1180
1181
1182
1183
1184
  if( dwFlagsAndAttributes & FILE_FLAG_DELETEONCLOSE ){
    pFile->zDeleteOnClose = zConverted;
  }else
#endif
  {
    free(zConverted);
  }

  return SQLITE_OK;
}

/*
** Delete the named file.
**
** Note that windows does not allow a file to be deleted if some other







>







1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
  if( dwFlagsAndAttributes & FILE_FLAG_DELETEONCLOSE ){
    pFile->zDeleteOnClose = zConverted;
  }else
#endif
  {
    free(zConverted);
  }
  OpenCounter(+1);
  return SQLITE_OK;
}

/*
** Delete the named file.
**
** Note that windows does not allow a file to be deleted if some other