wined3d: Return the correct length from config_list_get_value().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2022-03-28 16:17:58 +02:00 committed by Alexandre Julliard
parent 9cb65cb025
commit 4b3019142f
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ static const char *config_list_get_value(const char *string, const char *key, si
if (is_option_separator(prev_char) && *p == '=')
{
if ((end = strpbrk(p + 1, ",;")))
*len = end - p + 1;
*len = end - (p + 1);
else
*len = strlen(p + 1);
return p + 1;