wshom.ocx: Implement IWshShortcut::Save().

This commit is contained in:
Nikolay Sivov 2012-01-02 15:12:26 +03:00 committed by Alexandre Julliard
parent 34f1811d12
commit 06c0b139f5
1 changed files with 10 additions and 2 deletions

View File

@ -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 = {