Nikolay Sivov : wshom.ocx: Implement IWshShortcut::Save().
Alexandre Julliard
julliard at winehq.org
Tue Jan 3 12:52:52 CST 2012
Module: wine
Branch: master
Commit: 06c0b139f596cae83d498a55a9a0589e50400589
URL: http://source.winehq.org/git/wine.git/?a=commit;h=06c0b139f596cae83d498a55a9a0589e50400589
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Jan 2 15:12:26 2012 +0300
wshom.ocx: Implement IWshShortcut::Save().
---
dlls/wshom.ocx/shell.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c
index 121d3e7..4d0c266 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -504,8 +504,16 @@ static HRESULT WINAPI WshShortcut_Load(IWshShortcut *iface, BSTR PathLink)
static HRESULT WINAPI WshShortcut_Save(IWshShortcut *iface)
{
WshShortcut *This = impl_from_IWshShortcut(iface);
- FIXME("(%p): stub\n", This);
- return E_NOTIMPL;
+ IPersistFile *file;
+ 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 = {
More information about the wine-cvs
mailing list