Author: gedmurphy Date: Thu Oct 11 16:00:19 2007 New Revision: 29501
URL: http://svn.reactos.org/svn/reactos?rev=29501&view=rev Log: only run the change code when we have the changed struct to work with.
Modified: trunk/reactos/base/applications/mscutils/servman/mainwnd.c
Modified: trunk/reactos/base/applications/mscutils/servman/mainwnd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils/... ============================================================================== --- trunk/reactos/base/applications/mscutils/servman/mainwnd.c (original) +++ trunk/reactos/base/applications/mscutils/servman/mainwnd.c Thu Oct 11 16:00:19 2007 @@ -700,9 +700,11 @@ { LPNMLISTVIEW pnmv = (LPNMLISTVIEW) lParam;
- ListViewSelectionChanged(Info, pnmv); - SetMenuAndButtonStates(Info); - + if (pnmv->uNewState != 0) + { + ListViewSelectionChanged(Info, pnmv); + SetMenuAndButtonStates(Info); + } } break;