/ Check-in [5e3dfa27]
Login

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

Overview
Comment:Fix typo in a Windows threading support routine.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | threads
Files: files | file ages | folders
SHA1: 5e3dfa27c71a666e122e3cf64897038ff8424800
User & Date: mistachkin 2014-04-04 21:40:38
Context
2014-04-04
22:44
Fix harmless compiler warnings. check-in: e54dded2 user: drh tags: threads
21:40
Fix typo in a Windows threading support routine. check-in: 5e3dfa27 user: mistachkin tags: threads
18:37
Merge the latest trunk changes into the threads branch. check-in: 39ac79cf user: drh tags: threads
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/threads.c.

   145    145   /* Get the results of the thread */
   146    146   int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
   147    147     DWORD rc;
   148    148   
   149    149     assert( ppOut!=0 );
   150    150     if( p==0 ) return SQLITE_NOMEM;
   151    151     if( p->xTask==0 ){
   152         -    rc = WAIT_OBJECT_O;
          152  +    rc = WAIT_OBJECT_0;
   153    153     }else{
   154    154       rc = sqlite3Win32Wait((HANDLE)p->tid);
   155    155       assert( rc!=WAIT_IO_COMPLETION );
   156    156     }
   157    157     if( rc==WAIT_OBJECT_0 ) *ppOut = p->pResult;
   158    158     sqlite3_free(p);
   159    159     return (rc==WAIT_OBJECT_0) ? SQLITE_OK : SQLITE_ERROR;