1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Update return value checking to conform to the beginthreadex() specs.

FossilOrigin-Name: 3144a16f91364b455e54e6030714e1c12ab0bdb7
This commit is contained in:
mistachkin
2014-07-29 19:00:43 +00:00
parent 7c2231cf3b
commit acd57ea0c2
3 changed files with 8 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ int sqlite3ThreadCreate(
p->xTask = xTask;
p->pIn = pIn;
p->tid = _beginthreadex(0, 0, sqlite3ThreadProc, p, 0, &p->id);
if( p->tid==(uintptr_t)-1 ){
if( p->tid==0 ){
memset(p, 0, sizeof(*p));
}
}