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
ccfb4411
Commit
ccfb4411
authored
Jul 29, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum/tests: Add some more traces in test_devenum().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37326f21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
devenum.c
dlls/devenum/tests/devenum.c
+13
-8
No files found.
dlls/devenum/tests/devenum.c
View file @
ccfb4411
...
...
@@ -68,6 +68,7 @@ static void test_devenum(IBindCtx *bind_ctx)
IMoniker
*
moniker
;
BOOL
have_mrle
=
FALSE
;
GUID
cat_guid
,
clsid
;
WCHAR
*
displayname
;
VARIANT
var
;
HRESULT
hr
;
...
...
@@ -84,19 +85,19 @@ static void test_devenum(IBindCtx *bind_ctx)
ok
(
hr
==
S_OK
,
"IMoniker_BindToStorage failed: %#x
\n
"
,
hr
);
VariantInit
(
&
var
);
hr
=
IPropertyBag_Read
(
prop_bag
,
friendly_name
,
&
var
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to read FriendlyName: %#x
\n
"
,
hr
);
if
(
winetest_debug
>
1
)
trace
(
"%s:
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
hr
=
IPropertyBag_Read
(
prop_bag
,
clsidW
,
&
var
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to read CLSID: %#x
\n
"
,
hr
);
hr
=
CLSIDFromString
(
V_BSTR
(
&
var
),
&
cat_guid
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
VariantClear
(
&
var
);
hr
=
IPropertyBag_Read
(
prop_bag
,
friendly_name
,
&
var
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to read FriendlyName: %#x
\n
"
,
hr
);
if
(
winetest_debug
>
1
)
trace
(
"%s %s:
\n
"
,
wine_dbgstr_guid
(
&
cat_guid
),
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
IPropertyBag_Release
(
prop_bag
);
IMoniker_Release
(
moniker
);
...
...
@@ -107,6 +108,9 @@ static void test_devenum(IBindCtx *bind_ctx)
{
while
(
IEnumMoniker_Next
(
enum_moniker
,
1
,
&
moniker
,
NULL
)
==
S_OK
)
{
hr
=
IMoniker_GetDisplayName
(
moniker
,
NULL
,
NULL
,
&
displayname
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
hr
=
IMoniker_GetClassID
(
moniker
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"IMoniker_GetClassID should failed %x
\n
"
,
hr
);
...
...
@@ -123,7 +127,7 @@ static void test_devenum(IBindCtx *bind_ctx)
ok
(
hr
==
S_OK
,
"IPropertyBag_Read failed: %#x
\n
"
,
hr
);
if
(
winetest_debug
>
1
)
trace
(
" %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
trace
(
" %s
%s
\n
"
,
wine_dbgstr_w
(
displayname
)
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
if
(
IsEqualGUID
(
&
CLSID_VideoCompressorCategory
,
&
cat_guid
))
{
/* Test well known compressor to ensure that we really enumerate codecs */
...
...
@@ -139,6 +143,7 @@ static void test_devenum(IBindCtx *bind_ctx)
hr
=
IMoniker_BindToObject
(
moniker
,
bind_ctx
,
NULL
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %#x
\n
"
,
hr
);
CoTaskMemFree
(
displayname
);
IPropertyBag_Release
(
prop_bag
);
IMoniker_Release
(
moniker
);
}
...
...
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