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
52dd3156
Commit
52dd3156
authored
Aug 16, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Use CoTaskMemRealloc instead of alloc+copy.
parent
f49d6df1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
amstream.c
dlls/amstream/amstream.c
+1
-4
No files found.
dlls/amstream/amstream.c
View file @
52dd3156
...
...
@@ -279,15 +279,12 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream
hr
=
mediastream_create
((
IMultiMediaStream
*
)
iface
,
PurposeId
,
This
->
StreamType
,
&
pStream
);
if
(
SUCCEEDED
(
hr
))
{
pNewStreams
=
CoTaskMem
Alloc
((
This
->
nbStreams
+
1
)
*
sizeof
(
IMediaStream
*
));
pNewStreams
=
CoTaskMem
Realloc
(
This
->
pStreams
,
(
This
->
nbStreams
+
1
)
*
sizeof
(
IMediaStream
*
));
if
(
!
pNewStreams
)
{
IMediaStream_Release
(
pStream
);
return
E_OUTOFMEMORY
;
}
if
(
This
->
nbStreams
)
CopyMemory
(
pNewStreams
,
This
->
pStreams
,
This
->
nbStreams
*
sizeof
(
IMediaStream
*
));
CoTaskMemFree
(
This
->
pStreams
);
This
->
pStreams
=
pNewStreams
;
This
->
pStreams
[
This
->
nbStreams
]
=
pStream
;
This
->
nbStreams
++
;
...
...
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