wshom: Implement WindowStyle property for IWshShortcut

Nikolay Sivov nsivov at codeweavers.com
Mon Jul 2 01:48:40 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=31088
-------------- next part --------------
>From 19dd7815903891d385a01baae081f1162ea3e0ff Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun, 1 Jul 2012 19:37:19 +0400
Subject: [PATCH 6/8] Implement WindowStyle property for IWshShortcut

---
 dlls/wshom.ocx/shell.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c
index 204f91d..1973e2d 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -469,15 +469,15 @@ static HRESULT WINAPI WshShortcut_put_TargetPath(IWshShortcut *iface, BSTR Path)
 static HRESULT WINAPI WshShortcut_get_WindowStyle(IWshShortcut *iface, int *ShowCmd)
 {
     WshShortcut *This = impl_from_IWshShortcut(iface);
-    FIXME("(%p)->(%p): stub\n", This, ShowCmd);
-    return E_NOTIMPL;
+    TRACE("(%p)->(%p)\n", This, ShowCmd);
+    return IShellLinkW_GetShowCmd(This->link, ShowCmd);
 }
 
 static HRESULT WINAPI WshShortcut_put_WindowStyle(IWshShortcut *iface, int ShowCmd)
 {
     WshShortcut *This = impl_from_IWshShortcut(iface);
-    FIXME("(%p)->(%d): stub\n", This, ShowCmd);
-    return E_NOTIMPL;
+    TRACE("(%p)->(%d)\n", This, ShowCmd);
+    return IShellLinkW_SetShowCmd(This->link, ShowCmd);
 }
 
 static HRESULT WINAPI WshShortcut_get_WorkingDirectory(IWshShortcut *iface, BSTR *WorkingDirectory)
-- 
1.5.6.5



More information about the wine-patches mailing list