mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
-check wich control send the WM_NOTIFY
-don't include ProcessID 0 two times svn path=/trunk/; revision=25792
This commit is contained in:
parent
9ae5b19fde
commit
9cead0e330
2 changed files with 2 additions and 1 deletions
|
@ -83,6 +83,7 @@ MainWindow_WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
case WM_NOTIFY:
|
||||
{
|
||||
if (((LPNMLISTVIEW)lParam)->hdr.code == LVN_ITEMCHANGED
|
||||
&& (wParam == IDC_PROCESSLIST)
|
||||
&& (((LPNMLISTVIEW)lParam)->uNewState & LVIS_SELECTED)
|
||||
&& !(((LPNMLISTVIEW)lParam)->uOldState & LVIS_SELECTED))
|
||||
{
|
||||
|
|
|
@ -72,7 +72,7 @@ ProcessList_Update(HWND hListCtrl)
|
|||
{
|
||||
return;
|
||||
}
|
||||
for (i = 0; i < cProcesses; i++)
|
||||
for (i = 1; i < cProcesses; i++)
|
||||
{
|
||||
wsprintf(strText, L"<unknown>");
|
||||
item.lParam = ProcessIds[i];
|
||||
|
|
Loading…
Reference in a new issue