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
f608c5d2
Commit
f608c5d2
authored
Feb 04, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom: Implement Arguments() property for a shortcut.
parent
67fc9fba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
shell.c
dlls/wshom.ocx/shell.c
+20
-4
wshom.c
dlls/wshom.ocx/tests/wshom.c
+8
-3
No files found.
dlls/wshom.ocx/shell.c
View file @
f608c5d2
...
...
@@ -394,15 +394,31 @@ static HRESULT WINAPI WshShortcut_get_FullName(IWshShortcut *iface, BSTR *name)
static
HRESULT
WINAPI
WshShortcut_get_Arguments
(
IWshShortcut
*
iface
,
BSTR
*
Arguments
)
{
WshShortcut
*
This
=
impl_from_IWshShortcut
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
Arguments
);
return
E_NOTIMPL
;
WCHAR
buffW
[
INFOTIPSIZE
];
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Arguments
);
if
(
!
Arguments
)
return
E_POINTER
;
*
Arguments
=
NULL
;
hr
=
IShellLinkW_GetArguments
(
This
->
link
,
buffW
,
sizeof
(
buffW
)
/
sizeof
(
WCHAR
));
if
(
FAILED
(
hr
))
return
hr
;
*
Arguments
=
SysAllocString
(
buffW
);
return
S_OK
;
}
static
HRESULT
WINAPI
WshShortcut_put_Arguments
(
IWshShortcut
*
iface
,
BSTR
Arguments
)
{
WshShortcut
*
This
=
impl_from_IWshShortcut
(
iface
);
FIXME
(
"(%p)->(%s): stub
\n
"
,
This
,
debugstr_w
(
Arguments
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
Arguments
));
return
IShellLinkW_SetArguments
(
This
->
link
,
Arguments
);
}
static
HRESULT
WINAPI
WshShortcut_get_Description
(
IWshShortcut
*
iface
,
BSTR
*
Description
)
...
...
dlls/wshom.ocx/tests/wshom.c
View file @
f608c5d2
...
...
@@ -40,8 +40,9 @@ static void test_wshshell(void)
IDispatchEx
*
dispex
;
IWshCollection
*
coll
;
IDispatch
*
disp
,
*
shortcut
;
IUnknown
*
shell
,
*
unk
;
IUnknown
*
shell
;
IFolderCollection
*
folders
;
IWshShortcut
*
shcut
;
ITypeInfo
*
ti
;
HRESULT
hr
;
TYPEATTR
*
tattr
;
...
...
@@ -109,9 +110,13 @@ static void test_wshshell(void)
hr
=
IWshShell3_CreateShortcut
(
sh3
,
str
,
&
shortcut
);
EXPECT_HR
(
hr
,
S_OK
);
SysFreeString
(
str
);
hr
=
IDispatch_QueryInterface
(
shortcut
,
&
IID_IWshShortcut
,
(
void
**
)
&
unk
);
hr
=
IDispatch_QueryInterface
(
shortcut
,
&
IID_IWshShortcut
,
(
void
**
)
&
shcut
);
EXPECT_HR
(
hr
,
S_OK
);
IUnknown_Release
(
unk
);
hr
=
IWshShortcut_get_Arguments
(
shcut
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
IWshShortcut_Release
(
shcut
);
IDispatch_Release
(
shortcut
);
/* ExpandEnvironmentStrings */
...
...
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