Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f41ac94e
Commit
f41ac94e
authored
Oct 02, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Include the terminating null in the buffer size for decoded stream names.
parent
013b403c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
database.c
dlls/msi/database.c
+1
-1
streams.c
dlls/msi/streams.c
+1
-1
No files found.
dlls/msi/database.c
View file @
f41ac94e
...
...
@@ -131,7 +131,7 @@ UINT msi_get_raw_stream( MSIDATABASE *db, LPCWSTR stname, IStream **stm )
{
HRESULT
r
;
IStorage
*
stg
;
WCHAR
decoded
[
MAX_STREAM_NAME_LEN
];
WCHAR
decoded
[
MAX_STREAM_NAME_LEN
+
1
];
decode_streamname
(
stname
,
decoded
);
TRACE
(
"%s -> %s
\n
"
,
debugstr_w
(
stname
),
debugstr_w
(
decoded
));
...
...
dlls/msi/streams.c
View file @
f41ac94e
...
...
@@ -70,7 +70,7 @@ static BOOL streams_set_table_size(MSISTREAMSVIEW *sv, UINT size)
static
STREAM
*
create_stream
(
MSISTREAMSVIEW
*
sv
,
LPCWSTR
name
,
BOOL
encoded
,
IStream
*
stm
)
{
STREAM
*
stream
;
WCHAR
decoded
[
MAX_STREAM_NAME_LEN
];
WCHAR
decoded
[
MAX_STREAM_NAME_LEN
+
1
];
stream
=
msi_alloc
(
sizeof
(
STREAM
));
if
(
!
stream
)
...
...
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