From 3676640e6486a001130ef43d97908d71c1eb6937 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Mon, 29 Aug 2005 21:45:49 +0000 Subject: [PATCH] Added test to show that Windows does not allocate a new pidl in SHBindToParent. --- dlls/shell32/tests/shlfolder.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index ede8e6dede7..408acc0d750 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -377,6 +377,11 @@ static void test_GetDisplayName(void) return; } + /* This test shows that Windows doesn't allocate a new pidlLast, but returns a pointer into + * pidlTestFile (In accordance with MSDN). */ + todo_wine{ok (ILFindLastID(pidlTestFile) == pidlLast, + "SHBindToParent doesn't return the last id of the pidl param!\n");} + hr = IShellFolder_GetDisplayNameOf(psfPersonal, pidlLast, SHGDN_FORPARSING, &strret); ok (SUCCEEDED(hr), "Personal->GetDisplayNameOf failed! hr = %08lx\n", hr); if (FAILED(hr)) {