Commit 1b55ac75 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

opcservices: Fix relationship stream names.

parent f5156fd4
...@@ -1888,7 +1888,10 @@ static HRESULT opc_package_write_rels(struct zip_archive *archive, IOpcRelations ...@@ -1888,7 +1888,10 @@ static HRESULT opc_package_write_rels(struct zip_archive *archive, IOpcRelations
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
hr = IOpcPartUri_GetRawUri(rels_uri, &rels_part_uri); hr = IOpcPartUri_GetRawUri(rels_uri, &rels_part_uri);
if (SUCCEEDED(hr)) 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); SysFreeString(rels_part_uri);
IStream_Release(content); IStream_Release(content);
......
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