Commit 5f6fdb18 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

widl: Strip last separator in append_namespaces if suffix is NULL.

parent 31cbca5f
......@@ -124,7 +124,12 @@ static size_t append_namespaces(char **buf, size_t *len, size_t pos, struct name
size_t n = 0;
n += strappend(buf, len, pos + n, "%s", 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment