Commit 66dbcaf3 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Cosmetic fixes to 'walk proc' command.

parent e88edac6
...@@ -399,8 +399,8 @@ void DEBUG_InfoWindow(HWND hWnd) ...@@ -399,8 +399,8 @@ void DEBUG_InfoWindow(HWND hWnd)
for (i = 0; i < GetClassLong(hWnd, GCL_CBWNDEXTRA) / 2; i++) { for (i = 0; i < GetClassLong(hWnd, GCL_CBWNDEXTRA) / 2; i++) {
w = GetWindowWord(hWnd, i * 2); w = GetWindowWord(hWnd, i * 2);
/* FIXME: depends on i386 endian-ity */ /* FIXME: depends on i386 endian-ity */
DEBUG_Printf(DBG_CHN_MESG, " %02x", HIBYTE(w)); DEBUG_Printf(DBG_CHN_MESG, " %02x", HIBYTE(w));
DEBUG_Printf(DBG_CHN_MESG, " %02x", LOBYTE(w)); DEBUG_Printf(DBG_CHN_MESG, " %02x", LOBYTE(w));
} }
DEBUG_Printf(DBG_CHN_MESG, "\n"); DEBUG_Printf(DBG_CHN_MESG, "\n");
} }
...@@ -447,18 +447,18 @@ void DEBUG_WalkProcess(void) ...@@ -447,18 +447,18 @@ void DEBUG_WalkProcess(void)
DWORD current = DEBUG_CurrProcess ? DEBUG_CurrProcess->pid : 0; DWORD current = DEBUG_CurrProcess ? DEBUG_CurrProcess->pid : 0;
BOOL ok; BOOL ok;
entry.dwSize = sizeof(entry); entry.dwSize = sizeof(entry);
ok = Process32First( snap, &entry ); ok = Process32First( snap, &entry );
DEBUG_Printf(DBG_CHN_MESG, "%-8.8s %-8.8s %-8.8s %s\n", DEBUG_Printf(DBG_CHN_MESG, " %-8.8s %-8.8s %-8.8s %s\n",
"pid", "threads", "parent", "exe" ); "pid", "threads", "parent", "executable" );
while (ok) while (ok)
{ {
if (entry.th32ProcessID != GetCurrentProcessId()) if (entry.th32ProcessID != GetCurrentProcessId())
DEBUG_Printf(DBG_CHN_MESG, "%08lx %8ld %08lx '%s'%s\n", DEBUG_Printf(DBG_CHN_MESG, "%c%08lx %-8ld %08lx '%s'\n",
(entry.th32ProcessID == current) ? '>' : ' ',
entry.th32ProcessID, entry.cntThreads, entry.th32ProcessID, entry.cntThreads,
entry.th32ParentProcessID, entry.szExeFile, entry.th32ParentProcessID, entry.szExeFile);
(entry.th32ProcessID == current) ? " <==" : "" );
ok = Process32Next( snap, &entry ); ok = Process32Next( snap, &entry );
} }
CloseHandle( snap ); CloseHandle( snap );
......
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