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
ddbcd241
Commit
ddbcd241
authored
Mar 30, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/tests: Check method return values (Coverity).
parent
c824cfa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
qcap.c
dlls/qcap/tests/qcap.c
+7
-3
No files found.
dlls/qcap/tests/qcap.c
View file @
ddbcd241
...
...
@@ -1055,9 +1055,12 @@ static HRESULT WINAPI MemInputPin_Receive(IMemInputPin *iface, IMediaSample *pSa
REFERENCE_TIME
off
,
tmp
;
LARGE_INTEGER
li
;
BYTE
*
data
;
HRESULT
hr
;
IMediaSample_GetTime
(
pSample
,
&
off
,
&
tmp
);
IMediaSample_GetPointer
(
pSample
,
&
data
);
hr
=
IMediaSample_GetTime
(
pSample
,
&
off
,
&
tmp
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IMediaSample_GetPointer
(
pSample
,
&
data
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
li
.
QuadPart
=
off
;
IStream_Seek
(
avi_stream
,
li
,
STREAM_SEEK_SET
,
NULL
);
IStream_Write
(
avi_stream
,
data
,
IMediaSample_GetActualDataLength
(
pSample
),
NULL
);
...
...
@@ -1826,7 +1829,8 @@ static void test_AviMux(char *arg)
ok
(
memalloc
!=
&
MemAllocator
,
"memalloc == &MemAllocator
\n
"
);
IMemAllocator_Release
(
memalloc
);
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
avi_stream
);
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
avi_stream
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
SET_EXPECT
(
MediaSeeking_GetPositions
);
SET_EXPECT
(
MemInputPin_QueryInterface_IStream
);
hr
=
IBaseFilter_Run
(
avimux
,
0
);
...
...
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