Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8479238f
Commit
8479238f
authored
Sep 21, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opcservices: Write relationship stream for parts.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9c6d6899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
package.c
dlls/opcservices/package.c
+8
-0
No files found.
dlls/opcservices/package.c
View file @
8479238f
...
...
@@ -1956,6 +1956,7 @@ static HRESULT opc_package_write_rels(struct zip_archive *archive, IOpcRelations
static
HRESULT
opc_package_write_part
(
struct
zip_archive
*
archive
,
IOpcPart
*
part
,
IXmlWriter
*
writer
)
{
OPC_COMPRESSION_OPTIONS
options
=
OPC_COMPRESSION_NORMAL
;
IOpcRelationshipSet
*
rels
=
NULL
;
IStream
*
content
=
NULL
;
IOpcPartUri
*
name
;
BSTR
uri
=
NULL
;
...
...
@@ -1974,10 +1975,17 @@ static HRESULT opc_package_write_part(struct zip_archive *archive, IOpcPart *par
/* Part names always start with root '/', skip it. */
hr
=
compress_add_file
(
archive
,
uri
+
1
,
content
,
options
);
}
if
(
SUCCEEDED
(
hr
))
hr
=
IOpcPart_GetRelationshipSet
(
part
,
&
rels
);
if
(
SUCCEEDED
(
hr
))
hr
=
opc_package_write_rels
(
archive
,
rels
,
(
IOpcUri
*
)
name
,
writer
);
IOpcPartUri_Release
(
name
);
SysFreeString
(
uri
);
if
(
content
)
IStream_Release
(
content
);
if
(
rels
)
IOpcRelationshipSet_Release
(
rels
);
return
hr
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment