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
48df7471
Commit
48df7471
authored
Jan 20, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug caused by freeing memory too soon in the table code.
parent
18b1fe8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
table.c
dlls/msi/table.c
+3
-3
No files found.
dlls/msi/table.c
View file @
48df7471
...
...
@@ -196,8 +196,8 @@ void enum_stream_names( IStorage *stg )
if
(
FAILED
(
r
)
||
!
count
)
break
;
decode_streamname
(
stat
.
pwcsName
,
name
);
ERR
(
"stream %2ld -> %s %s
\n
"
,
n
,
debugstr_w
(
stat
.
pwcsName
),
debugstr_w
(
name
)
);
TRACE
(
"stream %2ld -> %s %s
\n
"
,
n
,
debugstr_w
(
stat
.
pwcsName
),
debugstr_w
(
name
)
);
n
++
;
}
...
...
@@ -356,12 +356,12 @@ static UINT write_stream_data( IStorage *stg, LPCWSTR stname,
encname
=
encode_streamname
(
TRUE
,
stname
);
r
=
IStorage_OpenStream
(
stg
,
encname
,
NULL
,
STGM_WRITE
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stm
);
HeapFree
(
GetProcessHeap
(),
0
,
encname
);
if
(
FAILED
(
r
)
)
{
r
=
IStorage_CreateStream
(
stg
,
encname
,
STGM_WRITE
|
STGM_SHARE_EXCLUSIVE
,
0
,
0
,
&
stm
);
}
HeapFree
(
GetProcessHeap
(),
0
,
encname
);
if
(
FAILED
(
r
)
)
{
ERR
(
"open stream failed r = %08lx
\n
"
,
r
);
...
...
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