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
ba858c28
Commit
ba858c28
authored
Aug 09, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Fix some DEVPKEY definitions.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0dbd2e37
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
devenum.c
dlls/mmdevapi/devenum.c
+1
-0
propstore.c
dlls/mmdevapi/tests/propstore.c
+3
-3
devpkey.h
include/devpkey.h
+3
-3
No files found.
dlls/mmdevapi/devenum.c
View file @
ba858c28
...
...
@@ -356,6 +356,7 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st
pv
.
vt
=
VT_LPWSTR
;
pv
.
u
.
pwszVal
=
name
;
MMDevice_SetPropValue
(
id
,
flow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_Device_FriendlyName
,
&
pv
);
MMDevice_SetPropValue
(
id
,
flow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_DeviceInterface_FriendlyName
,
&
pv
);
MMDevice_SetPropValue
(
id
,
flow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_Device_DeviceDesc
,
&
pv
);
pv
.
u
.
pwszVal
=
guidstr
;
...
...
dlls/mmdevapi/tests/propstore.c
View file @
ba858c28
...
...
@@ -64,7 +64,7 @@ static void test_propertystore(IPropertyStore *store)
pv
.
vt
=
VT_EMPTY
;
hr
=
IPropertyStore_GetValue
(
store
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_DeviceInterface_FriendlyName
,
&
pv
);
ok
(
hr
==
S_OK
,
"Failed with %08x
\n
"
,
hr
);
ok
(
pv
.
vt
==
VT_
EMPTY
,
"Key should not be found
\n
"
);
ok
(
pv
.
vt
==
VT_
LPWSTR
&&
pv
.
u
.
pwszVal
,
"FriendlyName value had wrong type: 0x%x or was NULL
\n
"
,
pv
.
vt
);
pv
.
vt
=
VT_EMPTY
;
hr
=
IPropertyStore_GetValue
(
store
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_DeviceInterface_Enabled
,
&
pv
);
...
...
@@ -118,8 +118,8 @@ static void test_getat(IPropertyStore *store)
if
(
IsEqualPropertyKey
(
pkey
,
DEVPKEY_Device_DeviceDesc
))
found_desc
=
TRUE
;
}
ok
(
found_name
||
broken
(
!
found_name
)
,
"DEVPKEY_Device_FriendlyName not found
\n
"
);
ok
(
found_desc
==
TRUE
,
"DEVPKEY_Device_DeviceDesc not found
\n
"
);
ok
(
found_name
,
"DEVPKEY_Device_FriendlyName not found
\n
"
);
ok
(
found_desc
,
"DEVPKEY_Device_DeviceDesc not found
\n
"
);
}
static
void
test_setvalue_on_wow64
(
IPropertyStore
*
store
)
...
...
include/devpkey.h
View file @
ba858c28
...
...
@@ -57,6 +57,6 @@ DEFINE_DEVPROPKEY(DEVPKEY_Device_InstallState, 0xa45c254e,0xdf1c,0x4efd,0x80,0x2
DEFINE_DEVPROPKEY
(
DEVPKEY_Device_LocationPaths
,
0xa45c254e
,
0xdf1c
,
0x4efd
,
0x80
,
0x20
,
0x67
,
0xd1
,
0x46
,
0xa8
,
0x50
,
0xe0
,
37
);
DEFINE_DEVPROPKEY
(
DEVPKEY_Device_BaseContainerId
,
0xa45c254e
,
0xdf1c
,
0x4efd
,
0x80
,
0x20
,
0x67
,
0xd1
,
0x46
,
0xa8
,
0x50
,
0xe0
,
38
);
DEFINE_DEVPROPKEY
(
DEVPKEY_DeviceInterface_FriendlyName
,
0x026e516e
,
0x
8b
14
,
0x414b
,
0x83
,
0xcd
,
0x85
,
0x6d
,
0x6f
,
0xef
,
0x48
,
0x22
,
2
);
DEFINE_DEVPROPKEY
(
DEVPKEY_DeviceInterface_Enabled
,
0x026e516e
,
0x
8b
14
,
0x414b
,
0x83
,
0xcd
,
0x85
,
0x6d
,
0x6f
,
0xef
,
0x48
,
0x22
,
3
);
DEFINE_DEVPROPKEY
(
DEVPKEY_DeviceInterface_ClassGuid
,
0x026e516e
,
0x
8b
14
,
0x414b
,
0x83
,
0xcd
,
0x85
,
0x6d
,
0x6f
,
0xef
,
0x48
,
0x22
,
4
);
DEFINE_DEVPROPKEY
(
DEVPKEY_DeviceInterface_FriendlyName
,
0x026e516e
,
0x
b8
14
,
0x414b
,
0x83
,
0xcd
,
0x85
,
0x6d
,
0x6f
,
0xef
,
0x48
,
0x22
,
2
);
DEFINE_DEVPROPKEY
(
DEVPKEY_DeviceInterface_Enabled
,
0x026e516e
,
0x
b8
14
,
0x414b
,
0x83
,
0xcd
,
0x85
,
0x6d
,
0x6f
,
0xef
,
0x48
,
0x22
,
3
);
DEFINE_DEVPROPKEY
(
DEVPKEY_DeviceInterface_ClassGuid
,
0x026e516e
,
0x
b8
14
,
0x414b
,
0x83
,
0xcd
,
0x85
,
0x6d
,
0x6f
,
0xef
,
0x48
,
0x22
,
4
);
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