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
ed65fc7c
Commit
ed65fc7c
authored
Jan 02, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Explicitly compare to HRESULT values.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c8e407da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
enumfilters.c
dlls/quartz/enumfilters.c
+1
-1
filtergraph.c
dlls/quartz/filtergraph.c
+2
-2
No files found.
dlls/quartz/enumfilters.c
View file @
ed65fc7c
...
...
@@ -185,7 +185,7 @@ static HRESULT WINAPI IEnumFiltersImpl_Reset(IEnumFilters * iface)
This
->
uIndex
=
0
;
hr
=
IGraphVersion_QueryVersion
(
This
->
pVersionSource
,
&
currentVersion
);
if
(
!
hr
)
if
(
hr
==
S_OK
)
This
->
Version
=
currentVersion
;
return
S_OK
;
}
...
...
dlls/quartz/filtergraph.c
View file @
ed65fc7c
...
...
@@ -1618,7 +1618,7 @@ static HRESULT GetFileSourceFilter(LPCOLESTR pszFileName, IBaseFilter **filter)
/* Try to find a match without reading the file first */
hr
=
GetClassMediaFile
(
NULL
,
pszFileName
,
NULL
,
NULL
,
&
clsid
);
if
(
!
hr
)
if
(
hr
==
S_OK
)
return
CreateFilterInstanceAndLoadFile
(
&
clsid
,
pszFileName
,
filter
);
/* Now create a AyncReader instance, to check for signature bytes in the file */
...
...
@@ -1660,7 +1660,7 @@ static HRESULT GetFileSourceFilter(LPCOLESTR pszFileName, IBaseFilter **filter)
hr
=
GetClassMediaFile
(
pReader
,
pszFileName
,
NULL
,
NULL
,
&
clsid
);
IAsyncReader_Release
(
pReader
);
if
(
!
hr
)
if
(
hr
==
S_OK
)
{
/* Release the AsyncReader filter and create the matching one */
IBaseFilter_Release
(
*
filter
);
...
...
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