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
a3295e38
Commit
a3295e38
authored
May 04, 2021
by
Damjan Jovanovic
Committed by
Alexandre Julliard
May 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix test failures from
ad412b11
.
Signed-off-by:
Damjan Jovanovic
<
damjan.jov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cda4abac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
37 deletions
+29
-37
shlfolder.c
dlls/shell32/tests/shlfolder.c
+29
-37
No files found.
dlls/shell32/tests/shlfolder.c
View file @
a3295e38
...
...
@@ -4479,46 +4479,38 @@ static void test_CreateViewObject_contextmenu(void)
LPITEMIDLIST
pidl
;
HRESULT
hr
;
DWORD
ret
;
int
i
;
hr
=
CoCreateInstance
(
&
CLSID_ControlPanel
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
hr
=
IShellFolder_CreateViewObject
(
folder
,
NULL
,
&
IID_IContextMenu
,
(
void
**
)
&
cmenu
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IContextMenu_Release
(
cmenu
);
IShellFolder_Release
(
folder
);
hr
=
CoCreateInstance
(
&
CLSID_MyComputer
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
hr
=
IShellFolder_CreateViewObject
(
folder
,
NULL
,
&
IID_IContextMenu
,
(
void
**
)
&
cmenu
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IContextMenu_Release
(
cmenu
);
IShellFolder_Release
(
folder
);
hr
=
CoCreateInstance
(
&
CLSID_NetworkPlaces
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
hr
=
IShellFolder_CreateViewObject
(
folder
,
NULL
,
&
IID_IContextMenu
,
(
void
**
)
&
cmenu
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IContextMenu_Release
(
cmenu
);
IShellFolder_Release
(
folder
);
static
const
CLSID
*
folders
[]
=
{
&
CLSID_MyComputer
,
&
CLSID_MyDocuments
,
&
CLSID_ControlPanel
,
&
CLSID_NetworkPlaces
,
&
CLSID_Printers
,
&
CLSID_RecycleBin
};
hr
=
CoCreateInstance
(
&
CLSID_Printers
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
hr
=
IShellFolder_CreateViewObject
(
folder
,
NULL
,
&
IID_IContextMenu
,
(
void
**
)
&
cmenu
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IContextMenu_Release
(
cmenu
);
IShellFolder_Release
(
folder
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
folders
);
i
++
)
{
hr
=
CoCreateInstance
(
folders
[
i
],
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
if
(
hr
!=
S_OK
)
{
win_skip
(
"Failed to create folder %s, hr %#x.
\n
"
,
wine_dbgstr_guid
(
folders
[
i
]),
hr
);
continue
;
}
hr
=
CoCreateInstance
(
&
CLSID_RecycleBin
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder
,
(
void
**
)
&
folder
);
ok
(
SUCCEEDED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
hr
=
IShellFolder_CreateViewObject
(
folder
,
NULL
,
&
IID_IContextMenu
,
(
void
**
)
&
cmenu
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IContextMenu_Release
(
cmenu
);
IShellFolder_Release
(
folder
);
hr
=
IShellFolder_CreateViewObject
(
folder
,
NULL
,
&
IID_IContextMenu
,
(
void
**
)
&
cmenu
);
if
(
IsEqualIID
(
folders
[
i
],
&
CLSID_MyDocuments
))
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
else
if
(
IsEqualIID
(
folders
[
i
],
&
CLSID_MyComputer
))
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_NOINTERFACE
/* win10 */
),
"got 0x%08x
\n
"
,
hr
);
else
ok
(
hr
==
E_NOINTERFACE
||
broken
(
FAILED
(
hr
)),
"got 0x%08x for %s
\n
"
,
hr
,
wine_dbgstr_guid
(
folders
[
i
]));
if
(
SUCCEEDED
(
hr
))
IContextMenu_Release
(
cmenu
);
IShellFolder_Release
(
folder
);
}
hr
=
SHGetDesktopFolder
(
&
desktop
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
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