commit | 2ec34e48a30c46ec7921984ea38b1d4f6cdf34a7 | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Wed Apr 04 00:21:05 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Apr 04 00:21:05 2001 +0000 |
tree | 7a5979e3314a0ca2b2949e039e2e53776187ce0f | |
parent | 3e7497f20e3b8b483e56b0343f85a348fbee7e51 [diff] [blame] |
Added TASK_GetPtr/TASK_GetCurrent functions to get the TDB for a task handle.
diff --git a/scheduler/thread.c b/scheduler/thread.c index 512d6e8..b0410f5 100644 --- a/scheduler/thread.c +++ b/scheduler/thread.c
@@ -68,7 +68,7 @@ /* Allow task handles to be used; convert to main thread */ if ( IsTask16( id ) ) { - TDB *pTask = (TDB *)GlobalLock16( id ); + TDB *pTask = TASK_GetPtr( id ); if (pTask) return pTask->teb; } SetLastError( ERROR_INVALID_PARAMETER );