Commit 7f0b1049 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

Use tpXXX instead of tbXXX in tagTHREADENTRY32.

parent 5e14b079
...@@ -481,7 +481,7 @@ void DEBUG_WalkThreads(void) ...@@ -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 );
......
...@@ -234,8 +234,8 @@ static BOOL TOOLHELP_Thread32Next( HANDLE handle, LPTHREADENTRY32 lpte, BOOL fir ...@@ -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" */
} }
} }
......
...@@ -28,8 +28,8 @@ typedef struct tagTHREADENTRY32 ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment