/ Check-in [3ee5d1a5]
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:Add additional error check for disk full on Windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3ee5d1a51d6347858734b7b595771ae9cd2cc89d
User & Date: shaneh 2011-06-20 20:48:09
Context
2011-06-20
20:50
Fix a couple of compiler issues on Windows due to warning clean up. check-in: 81e6f151 user: shaneh tags: trunk
20:48
Add additional error check for disk full on Windows. check-in: 3ee5d1a5 user: shaneh tags: trunk
20:39
Fix documentation typos. No changes to code. check-in: 3276f3f7 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

   874    874       if( nRem>0 ){
   875    875         pFile->lastErrno = GetLastError();
   876    876         rc = 1;
   877    877       }
   878    878     }
   879    879   
   880    880     if( rc ){
   881         -    if( pFile->lastErrno==ERROR_HANDLE_DISK_FULL ){
          881  +    if(   ( pFile->lastErrno==ERROR_HANDLE_DISK_FULL )
          882  +       || ( pFile->lastErrno==ERROR_DISK_FULL )){
   882    883         return SQLITE_FULL;
   883    884       }
   884    885       return winLogError(SQLITE_IOERR_WRITE, "winWrite", pFile->zPath);
   885    886     }
   886    887     return SQLITE_OK;
   887    888   }
   888    889