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
6ce17c1f
Commit
6ce17c1f
authored
Jan 08, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Moved test for special category GUID to separated function.
parent
03b2e737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
createdevenum.c
dlls/devenum/createdevenum.c
+10
-8
No files found.
dlls/devenum/createdevenum.c
View file @
6ce17c1f
...
...
@@ -107,12 +107,17 @@ static ULONG WINAPI DEVENUM_ICreateDevEnum_Release(ICreateDevEnum * iface)
return
1
;
/* non-heap based object */
}
static
BOOL
IsSpecialCategory
(
const
CLSID
*
clsid
)
{
return
IsEqualGUID
(
clsid
,
&
CLSID_AudioRendererCategory
)
||
IsEqualGUID
(
clsid
,
&
CLSID_AudioInputDeviceCategory
)
||
IsEqualGUID
(
clsid
,
&
CLSID_VideoInputDeviceCategory
)
||
IsEqualGUID
(
clsid
,
&
CLSID_MidiRendererCategory
);
}
HRESULT
DEVENUM_GetCategoryKey
(
REFCLSID
clsidDeviceClass
,
HKEY
*
pBaseKey
,
WCHAR
*
wszRegKeyName
,
UINT
maxLen
)
{
if
(
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioRendererCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_VideoInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_MidiRendererCategory
))
if
(
IsSpecialCategory
(
clsidDeviceClass
))
{
*
pBaseKey
=
HKEY_CURRENT_USER
;
strcpyW
(
wszRegKeyName
,
wszActiveMovieKey
);
...
...
@@ -482,10 +487,7 @@ static HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
if
(
FAILED
(
hr
))
return
hr
;
if
(
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioRendererCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_VideoInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_MidiRendererCategory
))
if
(
IsSpecialCategory
(
clsidDeviceClass
))
{
hr
=
DEVENUM_CreateSpecialCategories
();
if
(
FAILED
(
hr
))
...
...
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