Use tpXXX instead of tbXXX in tagTHREADENTRY32.
This commit is contained in:
parent
5e14b07961
commit
7f0b104953
|
@ -481,7 +481,7 @@ void DEBUG_WalkThreads(void)
|
|||
if (entry.th32OwnerProcessID != GetCurrentProcessId())
|
||||
DEBUG_Printf(DBG_CHN_MESG, "%08lx %08lx %4ld%s\n",
|
||||
entry.th32ThreadID, entry.th32OwnerProcessID,
|
||||
entry.tbBasePri, (entry.th32ThreadID == current) ? " <==" : "" );
|
||||
entry.tpBasePri, (entry.th32ThreadID == current) ? " <==" : "" );
|
||||
ok = Thread32Next( snap, &entry );
|
||||
}
|
||||
CloseHandle( snap );
|
||||
|
|
|
@ -234,8 +234,8 @@ static BOOL TOOLHELP_Thread32Next( HANDLE handle, LPTHREADENTRY32 lpte, BOOL fir
|
|||
lpte->cntUsage = req->count;
|
||||
lpte->th32ThreadID = (DWORD)req->tid;
|
||||
lpte->th32OwnerProcessID = (DWORD)req->pid;
|
||||
lpte->tbBasePri = req->base_pri;
|
||||
lpte->tbDeltaPri = req->delta_pri;
|
||||
lpte->tpBasePri = req->base_pri;
|
||||
lpte->tpDeltaPri = req->delta_pri;
|
||||
lpte->dwFlags = 0; /* SDK: "reserved; do not use" */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,8 +28,8 @@ typedef struct tagTHREADENTRY32
|
|||
DWORD cntUsage;
|
||||
DWORD th32ThreadID;
|
||||
DWORD th32OwnerProcessID;
|
||||
LONG tbBasePri;
|
||||
LONG tbDeltaPri;
|
||||
LONG tpBasePri;
|
||||
LONG tpDeltaPri;
|
||||
DWORD dwFlags;
|
||||
} THREADENTRY32, *PTHREADENTRY32, *LPTHREADENTRY32;
|
||||
|
||||
|
|
Loading…
Reference in New Issue