Nikolay Sivov : wshom.ocx: Implement IWshCollection::Item() for public desktop case.
Alexandre Julliard
julliard at winehq.org
Tue Jan 3 12:52:52 CST 2012
Module: wine
Branch: master
Commit: aa707ec270b825e7bee24f94ed1c63c6a01f36ac
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa707ec270b825e7bee24f94ed1c63c6a01f36ac
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Dec 31 00:51:30 2011 +0300
wshom.ocx: Implement IWshCollection::Item() for public desktop case.
---
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 2bd6a08..bd5cb26 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -170,6 +170,7 @@ static HRESULT WINAPI WshCollection_Invoke(IWshCollection *iface, DISPID dispIdM
static HRESULT WINAPI WshCollection_Item(IWshCollection *iface, VARIANT *index, VARIANT *value)
{
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 desktopW[] = {'D','e','s','k','t','o','p',0};
PIDLIST_ABSOLUTE pidl;
WCHAR pathW[MAX_PATH];
@@ -188,6 +189,8 @@ static HRESULT WINAPI WshCollection_Item(IWshCollection *iface, VARIANT *index,
folder = V_BSTR(index);
if (!strcmpiW(folder, desktopW))
kind = CSIDL_DESKTOP;
+ else if (!strcmpiW(folder, allusersdesktopW))
+ kind = CSIDL_COMMON_DESKTOPDIRECTORY;
else
{
FIXME("folder kind %s not supported\n", debugstr_w(folder));
More information about the wine-cvs
mailing list