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
7dc45ea5
Commit
7dc45ea5
authored
Feb 13, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix a test failure on Win8.
parent
c2faae4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
shlfolder.c
dlls/shell32/tests/shlfolder.c
+17
-4
No files found.
dlls/shell32/tests/shlfolder.c
View file @
7dc45ea5
...
...
@@ -3639,10 +3639,23 @@ static void test_ShellItemBindToHandler(void)
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
/* BHID_Transfer */
hr
=
IShellItem_BindToHandler
(
psi
,
NULL
,
&
BHID_Transfer
,
&
IID_IUnknown
,
(
void
**
)
&
punk
);
ok
(
hr
==
E_NOINTERFACE
||
broken
(
hr
==
MK_E_NOOBJECT
/* XP */
),
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
/* BHID_Transfer
ITransferSource and ITransferDestination are accessible starting Vista, IUnknown is
supported start Win8. */
hr
=
IShellItem_BindToHandler
(
psi
,
NULL
,
&
BHID_Transfer
,
&
IID_ITransferSource
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
||
broken
(
FAILED
(
hr
))
/* pre-Vista */
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
punk
);
hr
=
IShellItem_BindToHandler
(
psi
,
NULL
,
&
BHID_Transfer
,
&
IID_ITransferDestination
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IShellItem_BindToHandler
(
psi
,
NULL
,
&
BHID_Transfer
,
&
IID_IUnknown
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_NOINTERFACE
)
/* pre-Win8 */
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
}
/* BHID_EnumItems */
hr
=
IShellItem_BindToHandler
(
psi
,
NULL
,
&
BHID_EnumItems
,
&
IID_IEnumShellItems
,
(
void
**
)
&
punk
);
...
...
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