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

Changes to src/os_win.c.

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

/*







|







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

/*