wine/dlls/shell32/tests shlfolder.c

Alexandre Julliard julliard at wine.codeweavers.com
Fri Dec 2 04:29:49 CST 2005


ChangeSet ID:	21614
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/12/02 04:29:49

Modified files:
	dlls/shell32/tests: shlfolder.c 

Log message:
	Michael Jung <mjung at iss.tu-darmstadt.de>
	Added a test for native PIDL format.

Patch: http://cvs.winehq.org/patch.py?id=21614

Old revision  New revision  Changes     Path
 1.44          1.45          +11 -0      wine/dlls/shell32/tests/shlfolder.c

Index: wine/dlls/shell32/tests/shlfolder.c
diff -u -p wine/dlls/shell32/tests/shlfolder.c:1.44 wine/dlls/shell32/tests/shlfolder.c:1.45
--- wine/dlls/shell32/tests/shlfolder.c:1.44	2 Dec 2005 10:29:49 -0000
+++ wine/dlls/shell32/tests/shlfolder.c	2 Dec 2005 10:29:49 -0000
@@ -368,6 +368,17 @@ static void test_GetDisplayName(void)
         return;
     }
 
+    /* WinXP stores the filenames as both ANSI and UNICODE in the pidls */
+    pidlLast = ILFindLastID(pidlTestFile);
+    todo_wine { 
+        ok( pidlLast->mkid.cb >= 76, "Expected pidl length of at least 76, got %d.\n", 
+            pidlLast->mkid.cb);
+    }
+    if (pidlLast->mkid.cb >= 76) {
+        ok(!lstrcmpW((WCHAR*)&pidlLast->mkid.abID[46], wszFileName),
+            "WinXP stores the filename as a wchar-string at this position!\n");
+    }
+    
     /* It seems as if we cannot bind to regular files on windows, but only directories. 
      */
     hr = IShellFolder_BindToObject(psfDesktop, pidlTestFile, NULL, &IID_IUnknown, (VOID**)&psfFile);



More information about the wine-cvs mailing list