Author: tkreuzer
Date: Mon Feb 12 07:42:53 2007
New Revision: 25792
URL:
http://svn.reactos.org/svn/reactos?rev=25792&view=rev
Log:
-check wich control send the WM_NOTIFY
-don't include ProcessID 0 two times
Modified:
trunk/rosapps/devutils/gdihv/mainwnd.c
trunk/rosapps/devutils/gdihv/proclist.c
Modified: trunk/rosapps/devutils/gdihv/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/devutils/gdihv/mainwnd.c?r…
==============================================================================
--- trunk/rosapps/devutils/gdihv/mainwnd.c (original)
+++ trunk/rosapps/devutils/gdihv/mainwnd.c Mon Feb 12 07:42:53 2007
@@ -83,6 +83,7 @@
case WM_NOTIFY:
{
if (((LPNMLISTVIEW)lParam)->hdr.code == LVN_ITEMCHANGED
+ && (wParam == IDC_PROCESSLIST)
&& (((LPNMLISTVIEW)lParam)->uNewState & LVIS_SELECTED)
&& !(((LPNMLISTVIEW)lParam)->uOldState & LVIS_SELECTED))
{
Modified: trunk/rosapps/devutils/gdihv/proclist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/devutils/gdihv/proclist.c?…
==============================================================================
--- trunk/rosapps/devutils/gdihv/proclist.c (original)
+++ trunk/rosapps/devutils/gdihv/proclist.c Mon Feb 12 07:42:53 2007
@@ -72,7 +72,7 @@
{
return;
}
- for (i = 0; i < cProcesses; i++)
+ for (i = 1; i < cProcesses; i++)
{
wsprintf(strText, L"<unknown>");
item.lParam = ProcessIds[i];