[ros-diffs] [tkreuzer] 25792: -check wich control send the WM_NOTIFY -don't include ProcessID 0 two times

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Feb 12 05:42:53 CET 2007


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?rev=25792&r1=25791&r2=25792&view=diff
==============================================================================
--- 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?rev=25792&r1=25791&r2=25792&view=diff
==============================================================================
--- 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];




More information about the Ros-diffs mailing list