server: Avoid comparison of -1 with an unsigned variable.

This commit is contained in:
Mike McCormack 2006-04-07 15:06:15 +09:00 committed by Alexandre Julliard
parent f7679b4594
commit 14278b4299
1 changed files with 3 additions and 2 deletions

View File

@ -1233,9 +1233,10 @@ static struct key_value *parse_value_name( struct key *key, const char *buffer,
}
else
{
if ((*len = parse_strW( info->tmp, &maxlen, buffer + 1, '\"' )) == -1) goto error;
int r = parse_strW( info->tmp, &maxlen, buffer + 1, '\"' );
if (r == -1) goto error;
*len = r + 1; /* for initial quote */
name.len = maxlen - sizeof(WCHAR);
(*len)++; /* for initial quote */
}
while (isspace(buffer[*len])) (*len)++;
if (buffer[*len] != '=') goto error;