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:
parent
9cb65cb025
commit
4b3019142f
|
@ -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 (is_option_separator(prev_char) && *p == '=')
|
||||||
{
|
{
|
||||||
if ((end = strpbrk(p + 1, ",;")))
|
if ((end = strpbrk(p + 1, ",;")))
|
||||||
*len = end - p + 1;
|
*len = end - (p + 1);
|
||||||
else
|
else
|
||||||
*len = strlen(p + 1);
|
*len = strlen(p + 1);
|
||||||
return p + 1;
|
return p + 1;
|
||||||
|
|
Loading…
Reference in New Issue