Nikolay Sivov : wshom.ocx: Implement IWshCollection::Item() for common programs folders.

Alexandre Julliard julliard at winehq.org
Tue Jan 3 12:52:52 CST 2012


Module: wine
Branch: master
Commit: 7f2d4f2933345aeac7d5c5d419bc5ed6610fe28a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f2d4f2933345aeac7d5c5d419bc5ed6610fe28a

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Dec 31 00:56:37 2011 +0300

wshom.ocx: Implement IWshCollection::Item() for common programs folders.

---

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

diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c
index bd5cb26..c2959e7 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -171,6 +171,7 @@ static HRESULT WINAPI WshCollection_Item(IWshCollection *iface, VARIANT *index,
 {
     WshCollection *This = impl_from_IWshCollection(iface);
     static const WCHAR allusersdesktopW[] = {'A','l','l','U','s','e','r','s','D','e','s','k','t','o','p',0};
+    static const WCHAR allusersprogramsW[] = {'A','l','l','U','s','e','r','s','P','r','o','g','r','a','m','s',0};
     static const WCHAR desktopW[] = {'D','e','s','k','t','o','p',0};
     PIDLIST_ABSOLUTE pidl;
     WCHAR pathW[MAX_PATH];
@@ -191,6 +192,8 @@ static HRESULT WINAPI WshCollection_Item(IWshCollection *iface, VARIANT *index,
         kind = CSIDL_DESKTOP;
     else if (!strcmpiW(folder, allusersdesktopW))
         kind = CSIDL_COMMON_DESKTOPDIRECTORY;
+    else if (!strcmpiW(folder, allusersprogramsW))
+        kind = CSIDL_COMMON_PROGRAMS;
     else
     {
         FIXME("folder kind %s not supported\n", debugstr_w(folder));




More information about the wine-cvs mailing list