/ Check-in [d309680e]
Login

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

Overview
Comment:Fix a typo in os_win.c. Ticket #2055. (CVS 3504)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d309680ec7a806d181b601e0105aebf1e33bfb81
User & Date: drh 2006-11-07 15:02:08
Context
2006-11-08
12:25
Make the .exit and .quit commands work again in the shell. Ticket #2056. (CVS 3505) check-in: f39978ef user: drh tags: trunk
2006-11-07
15:02
Fix a typo in os_win.c. Ticket #2055. (CVS 3504) check-in: d309680e user: drh tags: trunk
2006-11-06
21:20
Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ returns from sqlite3OsRead() to make decisions about what to do with the error. (CVS 3503) check-in: 6324ea81 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

   993    993     SimulateIOError(return SQLITE_IOERR);
   994    994     TRACE3("READ %d lock=%d\n", ((winFile*)id)->h, ((winFile*)id)->locktype);
   995    995     if( !ReadFile(((winFile*)id)->h, pBuf, amt, &got, 0) ){
   996    996       got = -1;
   997    997     }
   998    998     if( got==(DWORD)amt ){
   999    999       return SQLITE_OK;
  1000         -  }else if( goc<0 ){
         1000  +  }else if( got<0 ){
  1001   1001       return SQLITE_IOERR_READ;
  1002   1002     }else{
  1003   1003       return SQLITE_IOERR_SHORT_READ;
  1004   1004     }
  1005   1005   }
  1006   1006   
  1007   1007   /*