Use tpXXX instead of tbXXX in tagTHREADENTRY32.

This commit is contained in:
Uwe Bonnes 2000-09-12 23:36:18 +00:00 committed by Alexandre Julliard
parent 5e14b07961
commit 7f0b104953
3 changed files with 5 additions and 5 deletions

View File

@ -481,7 +481,7 @@ void DEBUG_WalkThreads(void)
if (entry.th32OwnerProcessID != GetCurrentProcessId()) if (entry.th32OwnerProcessID != GetCurrentProcessId())
DEBUG_Printf(DBG_CHN_MESG, "%08lx %08lx %4ld%s\n", DEBUG_Printf(DBG_CHN_MESG, "%08lx %08lx %4ld%s\n",
entry.th32ThreadID, entry.th32OwnerProcessID, entry.th32ThreadID, entry.th32OwnerProcessID,
entry.tbBasePri, (entry.th32ThreadID == current) ? " <==" : "" ); entry.tpBasePri, (entry.th32ThreadID == current) ? " <==" : "" );
ok = Thread32Next( snap, &entry ); ok = Thread32Next( snap, &entry );
} }
CloseHandle( snap ); CloseHandle( snap );

View File

@ -234,8 +234,8 @@ static BOOL TOOLHELP_Thread32Next( HANDLE handle, LPTHREADENTRY32 lpte, BOOL fir
lpte->cntUsage = req->count; lpte->cntUsage = req->count;
lpte->th32ThreadID = (DWORD)req->tid; lpte->th32ThreadID = (DWORD)req->tid;
lpte->th32OwnerProcessID = (DWORD)req->pid; lpte->th32OwnerProcessID = (DWORD)req->pid;
lpte->tbBasePri = req->base_pri; lpte->tpBasePri = req->base_pri;
lpte->tbDeltaPri = req->delta_pri; lpte->tpDeltaPri = req->delta_pri;
lpte->dwFlags = 0; /* SDK: "reserved; do not use" */ lpte->dwFlags = 0; /* SDK: "reserved; do not use" */
} }
} }

View File

@ -28,8 +28,8 @@ typedef struct tagTHREADENTRY32
DWORD cntUsage; DWORD cntUsage;
DWORD th32ThreadID; DWORD th32ThreadID;
DWORD th32OwnerProcessID; DWORD th32OwnerProcessID;
LONG tbBasePri; LONG tpBasePri;
LONG tbDeltaPri; LONG tpDeltaPri;
DWORD dwFlags; DWORD dwFlags;
} THREADENTRY32, *PTHREADENTRY32, *LPTHREADENTRY32; } THREADENTRY32, *PTHREADENTRY32, *LPTHREADENTRY32;