wshom.ocx: Implement IWshShortcut::Save().
This commit is contained in:
parent
34f1811d12
commit
06c0b139f5
|
@ -504,8 +504,16 @@ static HRESULT WINAPI WshShortcut_Load(IWshShortcut *iface, BSTR PathLink)
|
||||||
static HRESULT WINAPI WshShortcut_Save(IWshShortcut *iface)
|
static HRESULT WINAPI WshShortcut_Save(IWshShortcut *iface)
|
||||||
{
|
{
|
||||||
WshShortcut *This = impl_from_IWshShortcut(iface);
|
WshShortcut *This = impl_from_IWshShortcut(iface);
|
||||||
FIXME("(%p): stub\n", This);
|
IPersistFile *file;
|
||||||
return E_NOTIMPL;
|
HRESULT hr;
|
||||||
|
|
||||||
|
TRACE("(%p)\n", This);
|
||||||
|
|
||||||
|
IShellLinkW_QueryInterface(This->link, &IID_IPersistFile, (void**)&file);
|
||||||
|
hr = IPersistFile_Save(file, This->path_link, TRUE);
|
||||||
|
IPersistFile_Release(file);
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const IWshShortcutVtbl WshShortcutVtbl = {
|
static const IWshShortcutVtbl WshShortcutVtbl = {
|
||||||
|
|
Loading…
Reference in New Issue