ntdll: Avoid shadowing "p" variable.

This commit is contained in:
Marcus Meissner 2011-10-20 02:02:38 +02:00 committed by Alexandre Julliard
parent cfd5bfa86e
commit 9ed15fbf14
1 changed files with 4 additions and 4 deletions

View File

@ -119,15 +119,15 @@ static const WCHAR **build_list( const WCHAR *buffer )
(count+1) * sizeof(WCHAR*) + (strlenW(buffer)+1) * sizeof(WCHAR) ))) (count+1) * sizeof(WCHAR*) + (strlenW(buffer)+1) * sizeof(WCHAR) )))
{ {
WCHAR *str = (WCHAR *)(ret + count + 1); WCHAR *str = (WCHAR *)(ret + count + 1);
WCHAR *p = str; WCHAR *q = str;
strcpyW( str, buffer ); strcpyW( str, buffer );
count = 0; count = 0;
for (;;) for (;;)
{ {
ret[count++] = p; ret[count++] = q;
if (!(p = strchrW( p, ';' ))) break; if (!(q = strchrW( q, ';' ))) break;
*p++ = 0; *q++ = 0;
} }
ret[count++] = NULL; ret[count++] = NULL;
} }