mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:22:22 +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;
|
||||
|
||||
/* 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…
Add table
Add a link
Reference in a new issue