Added a test for native PIDL format.

This commit is contained in:
Michael Jung 2005-12-02 11:25:18 +01:00 committed by Alexandre Julliard
parent ba525fab7f
commit 4db7733369

View File

@ -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);