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
85339cdb
Commit
85339cdb
authored
Apr 22, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Add some DEVPKEY's to property tests.
parent
bbd882a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
devenum.c
dlls/mmdevapi/devenum.c
+1
-0
mmdevenum.c
dlls/mmdevapi/tests/mmdevenum.c
+1
-0
propstore.c
dlls/mmdevapi/tests/propstore.c
+20
-4
No files found.
dlls/mmdevapi/devenum.c
View file @
85339cdb
...
...
@@ -1211,6 +1211,7 @@ static HRESULT WINAPI MMDevPropStore_GetValue(IPropertyStore *iface, REFPROPERTY
/* Special case */
if
(
IsEqualPropertyKey
(
*
key
,
PKEY_AudioEndpoint_GUID
))
{
pv
->
vt
=
VT_LPWSTR
;
pv
->
u
.
pwszVal
=
CoTaskMemAlloc
(
39
*
sizeof
(
WCHAR
));
if
(
!
pv
->
u
.
pwszVal
)
return
E_OUTOFMEMORY
;
...
...
dlls/mmdevapi/tests/mmdevenum.c
View file @
85339cdb
...
...
@@ -26,6 +26,7 @@
#include "audioclient.h"
#include "dshow.h"
#include "dsound.h"
#include "devpkey.h"
DEFINE_GUID
(
GUID_NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
...
...
dlls/mmdevapi/tests/propstore.c
View file @
85339cdb
...
...
@@ -29,22 +29,38 @@
#include "unknwn.h"
#include "uuids.h"
#include "mmdeviceapi.h"
#include "devpkey.h"
static
void
test_propertystore
(
IPropertyStore
*
store
)
{
HRESULT
hr
;
PROPVARIANT
pv
=
{
0
};
char
temp
[
40
];
PROPVARIANT
pv
;
char
temp
[
128
];
temp
[
sizeof
(
temp
)
-
1
]
=
0
;
pv
.
vt
=
VT_EMPTY
;
hr
=
IPropertyStore_GetValue
(
store
,
&
PKEY_AudioEndpoint_GUID
,
&
pv
);
ok
(
hr
==
S_OK
,
"Failed with %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
ok
(
pv
.
vt
==
VT_LPWSTR
,
"Value should be %i, is %i
\n
"
,
VT_LPWSTR
,
pv
.
vt
);
if
(
hr
==
S_OK
&&
pv
.
vt
==
VT_LPWSTR
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
pv
.
u
.
pwszVal
,
-
1
,
temp
,
sizeof
(
temp
)
-
1
,
NULL
,
NULL
);
temp
[
sizeof
(
temp
)
-
1
]
=
0
;
trace
(
"guid: %s
\n
"
,
temp
);
CoTaskMemFree
(
pv
.
u
.
pwszVal
);
}
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
"
);
pv
.
vt
=
VT_EMPTY
;
hr
=
IPropertyStore_GetValue
(
store
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_DeviceInterface_Enabled
,
&
pv
);
ok
(
pv
.
vt
==
VT_EMPTY
,
"Key should not be found
\n
"
);
pv
.
vt
=
VT_EMPTY
;
hr
=
IPropertyStore_GetValue
(
store
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_DeviceInterface_ClassGuid
,
&
pv
);
ok
(
pv
.
vt
==
VT_EMPTY
,
"Key should not be found
\n
"
);
}
START_TEST
(
propstore
)
...
...
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