widl: Strip last separator in append_namespaces if suffix is NULL.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
31cbca5f07
commit
5f6fdb1838
|
@ -124,7 +124,12 @@ static size_t append_namespaces(char **buf, size_t *len, size_t pos, struct name
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
n += strappend(buf, len, pos + n, "%s", prefix);
|
n += strappend(buf, len, pos + n, "%s", prefix);
|
||||||
if (nested) n += append_namespace(buf, len, pos + n, namespace, separator, abi_prefix);
|
if (nested) n += append_namespace(buf, len, pos + n, namespace, separator, abi_prefix);
|
||||||
n += strappend(buf, len, pos + n, "%s", suffix);
|
if (suffix) n += strappend(buf, len, pos + n, "%s", suffix);
|
||||||
|
else if (nested)
|
||||||
|
{
|
||||||
|
n -= strlen(separator);
|
||||||
|
(*buf)[n] = 0;
|
||||||
|
}
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue