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
6eab4981
Commit
6eab4981
authored
Dec 29, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Fix RegOpenKeyExW() failure condition.
Spotted by Mark Harmstone.
parent
5c91d011
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dmoreg.c
dlls/msdmo/dmoreg.c
+5
-4
No files found.
dlls/msdmo/dmoreg.c
View file @
6eab4981
...
...
@@ -364,6 +364,7 @@ static HRESULT IEnumDMO_Constructor(
IEnumDMOImpl
*
lpedmo
;
HRESULT
hr
=
S_OK
;
UINT
size
;
LONG
ret
;
*
obj
=
NULL
;
...
...
@@ -406,8 +407,8 @@ static HRESULT IEnumDMO_Constructor(
/* If not filtering by category enum from media objects root */
if
(
IsEqualGUID
(
guidCategory
,
&
GUID_NULL
))
{
if
(
!
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szDMORootKey
,
0
,
KEY_READ
,
&
lpedmo
->
hkey
))
hr
=
E_FAIL
;
if
(
(
ret
=
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szDMORootKey
,
0
,
KEY_READ
,
&
lpedmo
->
hkey
)
))
hr
=
HRESULT_FROM_WIN32
(
ret
)
;
}
else
{
...
...
@@ -416,8 +417,8 @@ static HRESULT IEnumDMO_Constructor(
wsprintfW
(
szKey
,
szCat3Fmt
,
szDMORootKey
,
szDMOCategories
,
GUIDToString
(
szguid
,
guidCategory
));
if
(
!
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szKey
,
0
,
KEY_READ
,
&
lpedmo
->
hkey
))
hr
=
E_FAIL
;
if
(
(
ret
=
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szKey
,
0
,
KEY_READ
,
&
lpedmo
->
hkey
)
))
hr
=
HRESULT_FROM_WIN32
(
ret
)
;
}
lerr:
...
...
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