Nicolas Le Cam : shell32/tests: Skip FolderShortcut test on Win2k.

Alexandre Julliard julliard at winehq.org
Thu Apr 9 11:13:50 CDT 2009


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

Author: Nicolas Le Cam <niko.lecam at gmail.com>
Date:   Thu Apr  9 00:01:12 2009 +0200

shell32/tests: Skip FolderShortcut test on Win2k.

Skip this test as it doesn't work on Win2k.
CoCreateInstance is successful but IPersistPropertyBag_Load call fails.

---

 dlls/shell32/tests/shlfolder.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index a45a386..5c30a7b 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -1196,7 +1196,13 @@ static void test_FolderShortcut(void) {
         win_skip("SHGetSpecialFolderPathW and/or StrRetToBufW are not available\n");
         return;
     }
-   
+
+    if (!pSHGetFolderPathAndSubDirA)
+    {
+        win_skip("FolderShortcut test doesn't work on Win2k\n");
+        return;
+    }
+
     /* These tests basically show, that CLSID_FolderShortcuts are initialized
      * via their IPersistPropertyBag interface. And that the target folder
      * is taken from the IPropertyBag's 'Target' property.
@@ -1216,7 +1222,7 @@ static void test_FolderShortcut(void) {
         IPersistPropertyBag_Release(pPersistPropertyBag);
         return;
     }
-    
+
     hr = IPersistPropertyBag_QueryInterface(pPersistPropertyBag, &IID_IShellFolder, 
                                             (LPVOID*)&pShellFolder);
     IPersistPropertyBag_Release(pPersistPropertyBag);




More information about the wine-cvs mailing list