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
49958f83
Commit
49958f83
authored
May 03, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Reg* API does not use HRESULT return codes.
parent
478d695e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
dmoreg.c
dlls/msdmo/dmoreg.c
+16
-14
No files found.
dlls/msdmo/dmoreg.c
View file @
49958f83
...
...
@@ -189,25 +189,26 @@ HRESULT WINAPI DMORegister(
HKEY
hkey
=
0
;
HKEY
hckey
=
0
;
HKEY
hclskey
=
0
;
LONG
ret
;
TRACE
(
"%s %s %s
\n
"
,
debugstr_w
(
szName
),
debugstr_guid
(
clsidDMO
),
debugstr_guid
(
guidCategory
));
if
(
IsEqualGUID
(
guidCategory
,
&
GUID_NULL
))
return
E_INVALIDARG
;
hres
=
RegCreateKeyExW
(
HKEY_CLASSES_ROOT
,
szDMORootKey
,
0
,
NULL
,
ret
=
RegCreateKeyExW
(
HKEY_CLASSES_ROOT
,
szDMORootKey
,
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
NULL
,
&
hrkey
,
NULL
);
if
(
ERROR_SUCCESS
!=
hres
)
goto
lend
;
if
(
ret
)
return
HRESULT_FROM_WIN32
(
ret
)
;
/* Create clsidDMO key under MediaObjects */
hres
=
RegCreateKeyExW
(
hrkey
,
GUIDToString
(
szguid
,
clsidDMO
),
0
,
NULL
,
ret
=
RegCreateKeyExW
(
hrkey
,
GUIDToString
(
szguid
,
clsidDMO
),
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
NULL
,
&
hkey
,
NULL
);
if
(
ERROR_SUCCESS
!=
hres
)
if
(
ret
)
goto
lend
;
/* Set default Name value */
hres
=
RegSetValueExW
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szName
,
ret
=
RegSetValueExW
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
BYTE
*
)
szName
,
(
strlenW
(
szName
)
+
1
)
*
sizeof
(
WCHAR
));
/* Set InputTypes */
...
...
@@ -219,28 +220,28 @@ HRESULT WINAPI DMORegister(
if
(
dwFlags
&
DMO_REGISTERF_IS_KEYED
)
{
/* Create Keyed key */
hres
=
RegCreateKeyExW
(
hkey
,
szDMOKeyed
,
0
,
NULL
,
ret
=
RegCreateKeyExW
(
hkey
,
szDMOKeyed
,
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
NULL
,
&
hckey
,
NULL
);
if
(
ERROR_SUCCESS
!=
hres
)
if
(
ret
)
goto
lend
;
RegCloseKey
(
hckey
);
}
/* Register the category */
hres
=
RegCreateKeyExW
(
hrkey
,
szDMOCategories
,
0
,
NULL
,
ret
=
RegCreateKeyExW
(
hrkey
,
szDMOCategories
,
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
NULL
,
&
hckey
,
NULL
);
if
(
ERROR_SUCCESS
!=
hres
)
if
(
ret
)
goto
lend
;
RegCloseKey
(
hkey
);
hres
=
RegCreateKeyExW
(
hckey
,
GUIDToString
(
szguid
,
guidCategory
),
0
,
NULL
,
ret
=
RegCreateKeyExW
(
hckey
,
GUIDToString
(
szguid
,
guidCategory
),
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
NULL
,
&
hkey
,
NULL
);
if
(
ERROR_SUCCESS
!=
hres
)
if
(
ret
)
goto
lend
;
hres
=
RegCreateKeyExW
(
hkey
,
GUIDToString
(
szguid
,
clsidDMO
),
0
,
NULL
,
ret
=
RegCreateKeyExW
(
hkey
,
GUIDToString
(
szguid
,
clsidDMO
),
0
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_WRITE
,
NULL
,
&
hclskey
,
NULL
);
if
(
ERROR_SUCCESS
!=
hres
)
if
(
ret
)
goto
lend
;
lend:
...
...
@@ -253,6 +254,7 @@ lend:
if
(
hrkey
)
RegCloseKey
(
hrkey
);
hres
=
HRESULT_FROM_WIN32
(
ret
);
TRACE
(
" hresult=0x%08x
\n
"
,
hres
);
return
hres
;
}
...
...
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