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
9e7c1bd1
Commit
9e7c1bd1
authored
Jan 02, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Implement IWshShortcut_put_Description().
parent
23fe903d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
shell.c
dlls/wshom.ocx/shell.c
+23
-4
No files found.
dlls/wshom.ocx/shell.c
View file @
9e7c1bd1
...
...
@@ -70,6 +70,9 @@ typedef struct
{
IWshShortcut
IWshShortcut_iface
;
LONG
ref
;
IShellLinkW
*
link
;
BSTR
path_link
;
}
WshShortcut
;
static
inline
WshCollection
*
impl_from_IWshCollection
(
IWshCollection
*
iface
)
...
...
@@ -315,7 +318,11 @@ static ULONG WINAPI WshShortcut_Release(IWshShortcut *iface)
TRACE
(
"(%p) ref = %d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
SysFreeString
(
This
->
path_link
);
IShellLinkW_Release
(
This
->
link
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
@@ -406,8 +413,8 @@ static HRESULT WINAPI WshShortcut_get_Description(IWshShortcut *iface, BSTR *Des
static
HRESULT
WINAPI
WshShortcut_put_Description
(
IWshShortcut
*
iface
,
BSTR
Description
)
{
WshShortcut
*
This
=
impl_from_IWshShortcut
(
iface
);
FIXME
(
"(%p)->(%s): stub
\n
"
,
This
,
debugstr_w
(
Description
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
Description
));
return
IShellLinkW_SetDescription
(
This
->
link
,
Description
)
;
}
static
HRESULT
WINAPI
WshShortcut_get_Hotkey
(
IWshShortcut
*
iface
,
BSTR
*
Hotkey
)
...
...
@@ -529,9 +536,12 @@ static const IWshShortcutVtbl WshShortcutVtbl = {
WshShortcut_Save
};
static
HRESULT
WshShortcut_Create
(
IDispatch
**
shortcut
)
static
HRESULT
WshShortcut_Create
(
const
WCHAR
*
path
,
IDispatch
**
shortcut
)
{
WshShortcut
*
This
;
HRESULT
hr
;
*
shortcut
=
NULL
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
...
...
@@ -539,6 +549,15 @@ static HRESULT WshShortcut_Create(IDispatch **shortcut)
This
->
IWshShortcut_iface
.
lpVtbl
=
&
WshShortcutVtbl
;
This
->
ref
=
1
;
hr
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkW
,
(
void
**
)
&
This
->
link
);
if
(
FAILED
(
hr
))
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
hr
;
}
This
->
path_link
=
SysAllocString
(
path
);
*
shortcut
=
(
IDispatch
*
)
&
This
->
IWshShortcut_iface
;
return
S_OK
;
...
...
@@ -654,7 +673,7 @@ static HRESULT WINAPI WshShell3_Popup(IWshShell3 *iface, BSTR Text, VARIANT* Sec
static
HRESULT
WINAPI
WshShell3_CreateShortcut
(
IWshShell3
*
iface
,
BSTR
PathLink
,
IDispatch
**
Shortcut
)
{
TRACE
(
"(%s %p)
\n
"
,
debugstr_w
(
PathLink
),
Shortcut
);
return
WshShortcut_Create
(
Shortcut
);
return
WshShortcut_Create
(
PathLink
,
Shortcut
);
}
static
HRESULT
WINAPI
WshShell3_ExpandEnvironmentStrings
(
IWshShell3
*
iface
,
BSTR
Src
,
BSTR
*
out_Dst
)
...
...
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