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
3014fb16
Commit
3014fb16
authored
Sep 18, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Added remaining Application() properties.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58b73fa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
8 deletions
+38
-8
shelldispatch.c
dlls/shell32/shelldispatch.c
+16
-7
shelldispatch.c
dlls/shell32/tests/shelldispatch.c
+22
-1
No files found.
dlls/shell32/shelldispatch.c
View file @
3014fb16
...
@@ -292,7 +292,10 @@ static HRESULT WINAPI FolderItemVerbImpl_Invoke(FolderItemVerb *iface,
...
@@ -292,7 +292,10 @@ static HRESULT WINAPI FolderItemVerbImpl_Invoke(FolderItemVerb *iface,
static
HRESULT
WINAPI
FolderItemVerbImpl_get_Application
(
FolderItemVerb
*
iface
,
IDispatch
**
disp
)
static
HRESULT
WINAPI
FolderItemVerbImpl_get_Application
(
FolderItemVerb
*
iface
,
IDispatch
**
disp
)
{
{
FIXME
(
"(%p, %p)
\n
"
,
iface
,
disp
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
disp
);
if
(
disp
)
*
disp
=
NULL
;
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -474,7 +477,10 @@ static HRESULT WINAPI FolderItemVerbsImpl_get_Count(FolderItemVerbs *iface, LONG
...
@@ -474,7 +477,10 @@ static HRESULT WINAPI FolderItemVerbsImpl_get_Count(FolderItemVerbs *iface, LONG
static
HRESULT
WINAPI
FolderItemVerbsImpl_get_Application
(
FolderItemVerbs
*
iface
,
IDispatch
**
disp
)
static
HRESULT
WINAPI
FolderItemVerbsImpl_get_Application
(
FolderItemVerbs
*
iface
,
IDispatch
**
disp
)
{
{
FIXME
(
"(%p, %p)
\n
"
,
iface
,
disp
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
disp
);
if
(
disp
)
*
disp
=
NULL
;
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1764,13 +1770,16 @@ static HRESULT WINAPI ShellDispatch_Invoke(IShellDispatch6 *iface,
...
@@ -1764,13 +1770,16 @@ static HRESULT WINAPI ShellDispatch_Invoke(IShellDispatch6 *iface,
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
ShellDispatch_get_Application
(
IShellDispatch6
*
iface
,
static
HRESULT
WINAPI
ShellDispatch_get_Application
(
IShellDispatch6
*
iface
,
IDispatch
**
disp
)
IDispatch
**
ppid
)
{
{
FIXME
(
"(%p,%p)
\n
"
,
iface
,
ppid
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
disp
);
*
ppid
=
NULL
;
if
(
!
disp
)
return
E_NOTIMPL
;
return
E_INVALIDARG
;
*
disp
=
(
IDispatch
*
)
iface
;
IDispatch_AddRef
(
*
disp
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
ShellDispatch_get_Parent
(
IShellDispatch6
*
iface
,
IDispatch
**
disp
)
static
HRESULT
WINAPI
ShellDispatch_get_Parent
(
IShellDispatch6
*
iface
,
IDispatch
**
disp
)
...
...
dlls/shell32/tests/shelldispatch.c
View file @
3014fb16
...
@@ -131,6 +131,12 @@ static void test_namespace(void)
...
@@ -131,6 +131,12 @@ static void test_namespace(void)
ok
(
SUCCEEDED
(
r
),
"Failed to create ShellDispatch object: %#x.
\n
"
,
r
);
ok
(
SUCCEEDED
(
r
),
"Failed to create ShellDispatch object: %#x.
\n
"
,
r
);
disp
=
NULL
;
disp
=
NULL
;
r
=
IShellDispatch_get_Application
(
sd
,
&
disp
);
ok
(
r
==
S_OK
,
"Failed to get application pointer, hr %#x.
\n
"
,
r
);
ok
(
disp
==
(
IDispatch
*
)
sd
,
"Unexpected application pointer %p.
\n
"
,
disp
);
IDispatch_Release
(
disp
);
disp
=
NULL
;
r
=
IShellDispatch_get_Parent
(
sd
,
&
disp
);
r
=
IShellDispatch_get_Parent
(
sd
,
&
disp
);
ok
(
r
==
S_OK
,
"Failed to get Shell object parent, hr %#x.
\n
"
,
r
);
ok
(
r
==
S_OK
,
"Failed to get Shell object parent, hr %#x.
\n
"
,
r
);
ok
(
disp
==
(
IDispatch
*
)
sd
,
"Unexpected parent pointer %p.
\n
"
,
disp
);
ok
(
disp
==
(
IDispatch
*
)
sd
,
"Unexpected parent pointer %p.
\n
"
,
disp
);
...
@@ -1226,7 +1232,7 @@ static void test_ParseName(void)
...
@@ -1226,7 +1232,7 @@ static void test_ParseName(void)
static
void
test_Verbs
(
void
)
static
void
test_Verbs
(
void
)
{
{
FolderItemVerbs
*
verbs
;
FolderItemVerbs
*
verbs
,
*
verbs2
;
WCHAR
pathW
[
MAX_PATH
];
WCHAR
pathW
[
MAX_PATH
];
FolderItemVerb
*
verb
;
FolderItemVerb
*
verb
;
IShellDispatch
*
sd
;
IShellDispatch
*
sd
;
...
@@ -1265,6 +1271,16 @@ if (0) { /* crashes on some systems */
...
@@ -1265,6 +1271,16 @@ if (0) { /* crashes on some systems */
hr
=
FolderItem_Verbs
(
item
,
&
verbs
);
hr
=
FolderItem_Verbs
(
item
,
&
verbs
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
FolderItem_Verbs
(
item
,
&
verbs2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
verbs2
!=
verbs
,
"Unexpected verbs pointer.
\n
"
);
FolderItemVerbs_Release
(
verbs2
);
disp
=
(
void
*
)
0xdeadbeef
;
hr
=
FolderItemVerbs_get_Application
(
verbs
,
&
disp
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
disp
==
NULL
,
"Unexpected application pointer.
\n
"
);
disp
=
(
void
*
)
0xdeadbeef
;
disp
=
(
void
*
)
0xdeadbeef
;
hr
=
FolderItemVerbs_get_Parent
(
verbs
,
&
disp
);
hr
=
FolderItemVerbs_get_Parent
(
verbs
,
&
disp
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
...
@@ -1303,6 +1319,11 @@ if (0) { /* crashes on winxp/win2k3 */
...
@@ -1303,6 +1319,11 @@ if (0) { /* crashes on winxp/win2k3 */
ok
(
hr
==
E_NOTIMPL
,
"got %#x.
\n
"
,
hr
);
ok
(
hr
==
E_NOTIMPL
,
"got %#x.
\n
"
,
hr
);
ok
(
disp
==
NULL
,
"Unexpected parent pointer %p.
\n
"
,
disp
);
ok
(
disp
==
NULL
,
"Unexpected parent pointer %p.
\n
"
,
disp
);
disp
=
(
void
*
)
0xdeadbeef
;
hr
=
FolderItemVerb_get_Application
(
verb
,
&
disp
);
ok
(
hr
==
E_NOTIMPL
,
"got %#x.
\n
"
,
hr
);
ok
(
disp
==
NULL
,
"Unexpected parent pointer %p.
\n
"
,
disp
);
SysFreeString
(
str
);
SysFreeString
(
str
);
FolderItemVerb_Release
(
verb
);
FolderItemVerb_Release
(
verb
);
}
}
...
...
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