Paul Vriens : shell32/tests: Make sure we test on Win95.

Alexandre Julliard julliard at winehq.org
Thu Mar 5 10:31:03 CST 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Wed Mar  4 21:53:16 2009 +0100

shell32/tests: Make sure we test on Win95.

---

 dlls/shell32/tests/shlfolder.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index 7a29626..9de37bd 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -707,7 +707,6 @@ static void test_GetAttributesOf(void)
     char  cCurrDirA [MAX_PATH] = {0};
     WCHAR cCurrDirW [MAX_PATH];
     static WCHAR cTestDirW[] = {'t','e','s','t','d','i','r',0};
-    static const WCHAR cBackSlash[] = {'\\',0};
     IShellFolder *IDesktopFolder, *testIShellFolder;
     ITEMIDLIST *newPIDL;
     int len;
@@ -768,19 +767,19 @@ static void test_GetAttributesOf(void)
 
     IShellFolder_Release(psfMyComputer);
 
-    /* create test directory */
-    CreateFilesFolders();
-
     GetCurrentDirectoryA(MAX_PATH, cCurrDirA);
     len = lstrlenA(cCurrDirA);
 
     if (len == 0) {
-	trace("GetCurrentDirectoryA returned empty string. Skipping test_EnumObjects_and_CompareIDs\n");
+	win_skip("GetCurrentDirectoryA returned empty string. Skipping test_GetAttributesOf\n");
 	return;
     }
     if(cCurrDirA[len-1] == '\\')
 	cCurrDirA[len-1] = 0;
 
+    /* create test directory */
+    CreateFilesFolders();
+
     MultiByteToWideChar(CP_ACP, 0, cCurrDirA, -1, cCurrDirW, MAX_PATH);
  
     hr = SHGetDesktopFolder(&IDesktopFolder);
@@ -808,8 +807,8 @@ static void test_GetAttributesOf(void)
     IMalloc_Free(ppM, newPIDL);
 
     /* append testdirectory name to path */
-    lstrcatW(cCurrDirW, cBackSlash);
-    lstrcatW(cCurrDirW, cTestDirW);
+    lstrcatA(cCurrDirA, "\\testdir");
+    MultiByteToWideChar(CP_ACP, 0, cCurrDirA, -1, cCurrDirW, MAX_PATH);
 
     hr = IShellFolder_ParseDisplayName(IDesktopFolder, NULL, NULL, cCurrDirW, NULL, &newPIDL, 0);
     ok(hr == S_OK, "ParseDisplayName failed %08x\n", hr);




More information about the wine-cvs mailing list