Added test to show that Windows does not allocate a new pidl in
SHBindToParent.
This commit is contained in:
parent
060bfac706
commit
3676640e64
|
@ -377,6 +377,11 @@ static void test_GetDisplayName(void)
|
||||||
return;
|
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);
|
hr = IShellFolder_GetDisplayNameOf(psfPersonal, pidlLast, SHGDN_FORPARSING, &strret);
|
||||||
ok (SUCCEEDED(hr), "Personal->GetDisplayNameOf failed! hr = %08lx\n", hr);
|
ok (SUCCEEDED(hr), "Personal->GetDisplayNameOf failed! hr = %08lx\n", hr);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
|
|
Loading…
Reference in New Issue