IShellFolder::GetAttributesOf()

Martin Fuchs martin-fuchs at gmx.net
Sun Apr 11 08:38:08 CDT 2004


Changelog:
correct IShellFolder::GetAttributesOf() for the case *rgfInOut=0


Index: cpanelfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/cpanelfolder.c,v
retrieving revision 1.3
diff -u -p -d -r1.3 cpanelfolder.c
--- cpanelfolder.c	8 Apr 2004 04:37:43 -0000	1.3
+++ cpanelfolder.c	11 Apr 2004 13:37:12 -0000
@@ -556,6 +556,9 @@ ISF_ControlPanel_fnGetAttributesOf(IShel
     if ((!cidl) ||(!apidl) ||(!rgfInOut))
 	return E_INVALIDARG;
 
+    if (*rgfInOut == 0)
+	*rgfInOut = ~0;
+
     while(cidl > 0 && *apidl) {
 	pdump(*apidl);
 	SHELL32_GetItemAttributes(_IShellFolder_(This), *apidl, rgfInOut);
Index: shfldr_desktop.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shfldr_desktop.c,v
retrieving revision 1.22
diff -u -p -d -r1.22 shfldr_desktop.c
--- shfldr_desktop.c	8 Apr 2004 19:50:17 -0000	1.22
+++ shfldr_desktop.c	11 Apr 2004 13:37:12 -0000
@@ -425,6 +425,9 @@ static HRESULT WINAPI ISF_Desktop_fnGetA
     if ((!cidl) || (!apidl) || (!rgfInOut))
 	return E_INVALIDARG;
 
+    if (*rgfInOut == 0)
+	*rgfInOut = ~0;
+
     while (cidl > 0 && *apidl) {
 	pdump (*apidl);
 	SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
Index: shfldr_fs.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shfldr_fs.c,v
retrieving revision 1.21
diff -u -p -d -r1.21 shfldr_fs.c
--- shfldr_fs.c	8 Apr 2004 19:50:17 -0000	1.21
+++ shfldr_fs.c	11 Apr 2004 13:37:13 -0000
@@ -509,6 +509,9 @@ IShellFolder_fnGetAttributesOf (IShellFo
     if ((!cidl) || (!apidl) || (!rgfInOut))
 	return E_INVALIDARG;
 
+    if (*rgfInOut == 0)
+	*rgfInOut = ~0;
+
     while (cidl > 0 && *apidl) {
 	pdump (*apidl);
 	SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);
Index: shfldr_mycomp.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shfldr_mycomp.c,v
retrieving revision 1.19
diff -u -p -d -r1.19 shfldr_mycomp.c
--- shfldr_mycomp.c	8 Apr 2004 19:50:17 -0000	1.19
+++ shfldr_mycomp.c	11 Apr 2004 13:37:13 -0000
@@ -407,6 +407,9 @@ ISF_MyComputer_fnGetAttributesOf (IShell
     if ((!cidl) || (!apidl) || (!rgfInOut))
 	return E_INVALIDARG;
 
+    if (*rgfInOut == 0)
+	*rgfInOut = ~0;
+
     while (cidl > 0 && *apidl) {
 	pdump (*apidl);
 	SHELL32_GetItemAttributes (_IShellFolder_ (This), *apidl, rgfInOut);





More information about the wine-patches mailing list