mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
Make the logic easier to read
svn path=/trunk/; revision=44957
This commit is contained in:
parent
dfe969ab14
commit
bb5ea9e289
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue