opcservices: Fix relationship stream names.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-09-20 10:09:15 +03:00 committed by Alexandre Julliard
parent f5156fd444
commit 1b55ac7509
1 changed files with 4 additions and 1 deletions

View File

@ -1888,7 +1888,10 @@ static HRESULT opc_package_write_rels(struct zip_archive *archive, IOpcRelations
if (SUCCEEDED(hr))
hr = IOpcPartUri_GetRawUri(rels_uri, &rels_part_uri);
if (SUCCEEDED(hr))
hr = compress_add_file(archive, rels_part_uri, content, OPC_COMPRESSION_NORMAL);
{
/* Relationship part names always start with root '/', skip it. */
hr = compress_add_file(archive, rels_part_uri + 1, content, OPC_COMPRESSION_NORMAL);
}
SysFreeString(rels_part_uri);
IStream_Release(content);