Author: gedmurphy
Date: Tue Jan 5 20:27:14 2010
New Revision: 44957
URL:
http://svn.reactos.org/svn/reactos?rev=44957&view=rev
Log:
Make the logic easier to read
Modified:
trunk/reactos/base/applications/mscutils/servman/stop_dependencies.c
Modified: trunk/reactos/base/applications/mscutils/servman/stop_dependencies.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/stop_dependencies.c [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/servman/stop_dependencies.c [iso-8859-1] Tue
Jan 5 20:27:14 2010
@@ -47,8 +47,12 @@
dwCurSize = 0;
/* Get the list size */
- while (*ptr != L'\0' || *(ptr + 1) != L'\0')
- {
+ while (TRUE)
+ {
+ /* Break when we hit the double null */
+ if (*ptr == L'\0' && *(ptr + 1) == L'\0')
+ break;
+
ptr++;
dwCurSize++;
}