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
dcbe0fdf
Commit
dcbe0fdf
authored
Feb 04, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Encode the stream name before trying to open it.
parent
b833ae02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
streams.c
dlls/msi/streams.c
+5
-2
No files found.
dlls/msi/streams.c
View file @
dcbe0fdf
...
...
@@ -135,7 +135,7 @@ static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, U
STREAM
*
stream
;
IStream
*
stm
;
STATSTG
stat
;
LPWSTR
name
=
NULL
;
LPWSTR
encname
=
NULL
,
name
=
NULL
;
USHORT
*
data
=
NULL
;
HRESULT
hr
;
ULONG
count
;
...
...
@@ -181,6 +181,8 @@ static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, U
goto
done
;
}
encname
=
encode_streamname
(
FALSE
,
name
);
r
=
write_stream_data
(
sv
->
db
->
storage
,
name
,
data
,
count
,
FALSE
);
if
(
r
!=
ERROR_SUCCESS
)
{
...
...
@@ -192,7 +194,7 @@ static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, U
if
(
!
stream
)
goto
done
;
hr
=
IStorage_OpenStream
(
sv
->
db
->
storage
,
name
,
0
,
hr
=
IStorage_OpenStream
(
sv
->
db
->
storage
,
enc
name
,
0
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stream
->
stream
);
if
(
FAILED
(
hr
))
{
...
...
@@ -205,6 +207,7 @@ static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, U
done:
msi_free
(
name
);
msi_free
(
data
);
msi_free
(
encname
);
IStream_Release
(
stm
);
...
...
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