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
76b91051
Commit
76b91051
authored
Feb 08, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Remove ERR() on HeapAlloc failure for small sizes known at compile time.
parent
5ef8a8b2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
21 deletions
+0
-21
amstream.c
dlls/amstream/amstream.c
+0
-3
audiodata.c
dlls/amstream/audiodata.c
+0
-3
mediastream.c
dlls/amstream/mediastream.c
+0
-12
mediastreamfilter.c
dlls/amstream/mediastreamfilter.c
+0
-3
No files found.
dlls/amstream/amstream.c
View file @
76b91051
...
...
@@ -63,10 +63,7 @@ HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAMMultiMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IAMMultiMediaStream_iface
.
lpVtbl
=
&
AM_Vtbl
;
object
->
ref
=
1
;
...
...
dlls/amstream/audiodata.c
View file @
76b91051
...
...
@@ -143,10 +143,7 @@ HRESULT AMAudioData_create(IUnknown *pUnkOuter, LPVOID *ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
AMAudioDataImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IAudioData_iface
.
lpVtbl
=
&
AudioData_Vtbl
;
object
->
ref
=
1
;
...
...
dlls/amstream/mediastream.c
View file @
76b91051
...
...
@@ -436,10 +436,7 @@ HRESULT ddrawmediastream_create(IMultiMediaStream *parent, const MSPID *purpose_
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DirectDrawMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IAMMediaStream_iface
.
lpVtbl
=
&
DirectDrawMediaStreamImpl_IAMMediaStream_Vtbl
;
object
->
IDirectDrawMediaStream_iface
.
lpVtbl
=
&
DirectDrawMediaStreamImpl_IDirectDrawMediaStream_Vtbl
;
...
...
@@ -839,10 +836,7 @@ HRESULT audiomediastream_create(IMultiMediaStream *parent, const MSPID *purpose_
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
AudioMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IAMMediaStream_iface
.
lpVtbl
=
&
AudioMediaStreamImpl_IAMMediaStream_Vtbl
;
object
->
IAudioMediaStream_iface
.
lpVtbl
=
&
AudioMediaStreamImpl_IAudioMediaStream_Vtbl
;
...
...
@@ -992,10 +986,7 @@ static HRESULT ddrawstreamsample_create(IDirectDrawMediaStream *parent, IDirectD
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectDrawStreamSampleImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirectDrawStreamSample_iface
.
lpVtbl
=
&
DirectDrawStreamSample_Vtbl
;
object
->
ref
=
1
;
...
...
@@ -1133,10 +1124,7 @@ static HRESULT audiostreamsample_create(IAudioMediaStream *parent, IAudioData *a
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAudioStreamSampleImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IAudioStreamSample_iface
.
lpVtbl
=
&
AudioStreamSample_Vtbl
;
object
->
ref
=
1
;
...
...
dlls/amstream/mediastreamfilter.c
View file @
76b91051
...
...
@@ -516,10 +516,7 @@ HRESULT MediaStreamFilter_create(IUnknown *pUnkOuter, void **ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamFilterImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
BaseFilter_Init
(
&
object
->
filter
,
(
IBaseFilterVtbl
*
)
&
MediaStreamFilter_Vtbl
,
&
CLSID_MediaStreamFilter
,
(
DWORD_PTR
)(
__FILE__
": MediaStreamFilterImpl.csFilter"
),
&
BaseFuncTable
);
...
...
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