From 4db773336998ae60d2d75925ceeebe72dc5549e3 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Fri, 2 Dec 2005 11:25:18 +0100 Subject: [PATCH] Added a test for native PIDL format. --- dlls/shell32/tests/shlfolder.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index db6a7a97534..66df1991525 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -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);