Make the logic easier to read

svn path=/trunk/; revision=44957
This commit is contained in:
Ged Murphy 2010-01-05 19:27:14 +00:00
parent dfe969ab14
commit bb5ea9e289

View file

@ -47,8 +47,12 @@ AddServiceToList(LPWSTR *lpServiceList,
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++;
}