mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 08:52:57 +00:00
Make the logic easier to read
svn path=/trunk/; revision=44957
This commit is contained in:
parent
dfe969ab14
commit
bb5ea9e289
1 changed files with 5 additions and 1 deletions
|
@ -47,8 +47,12 @@ AddServiceToList(LPWSTR *lpServiceList,
|
||||||
dwCurSize = 0;
|
dwCurSize = 0;
|
||||||
|
|
||||||
/* Get the list size */
|
/* 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++;
|
ptr++;
|
||||||
dwCurSize++;
|
dwCurSize++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue