Use tpXXX instead of tbXXX in tagTHREADENTRY32.
diff --git a/debugger/info.c b/debugger/info.c index a91e323..2df7ac8 100644 --- a/debugger/info.c +++ b/debugger/info.c
@@ -481,7 +481,7 @@ 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 );
diff --git a/dlls/kernel/toolhelp.c b/dlls/kernel/toolhelp.c index 077308c..9844ec9 100644 --- a/dlls/kernel/toolhelp.c +++ b/dlls/kernel/toolhelp.c
@@ -234,8 +234,8 @@ 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" */ } }
diff --git a/include/tlhelp32.h b/include/tlhelp32.h index 797aa7f..355c6c2 100644 --- a/include/tlhelp32.h +++ b/include/tlhelp32.h
@@ -28,8 +28,8 @@ DWORD cntUsage; DWORD th32ThreadID; DWORD th32OwnerProcessID; - LONG tbBasePri; - LONG tbDeltaPri; + LONG tpBasePri; + LONG tpDeltaPri; DWORD dwFlags; } THREADENTRY32, *PTHREADENTRY32, *LPTHREADENTRY32;