>From 2f1b68ee5f73aaede58042915df0b27fac4c2cab Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Sat, 31 Dec 2011 00:56:37 +0300
Subject: [PATCH 04/10] 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));
-- 
1.5.6.5


