shell32/tests: Fix a test failure on Vista.

This commit is contained in:
Paul Vriens 2009-06-18 10:29:33 +02:00 committed by Alexandre Julliard
parent c05e6d8f45
commit 29c51bdb04
1 changed files with 2 additions and 1 deletions

View File

@ -469,7 +469,8 @@ static void test_GetDisplayName(void)
}
/* WinXP and up store the filenames as both ANSI and UNICODE in the pidls */
if (pidlLast->mkid.cb >= 76) {
ok(!lstrcmpW((WCHAR*)&pidlLast->mkid.abID[46], wszFileName),
ok(!lstrcmpW((WCHAR*)&pidlLast->mkid.abID[46], wszFileName) ||
(pidlLast->mkid.cb >= 94 && !lstrcmpW((WCHAR*)&pidlLast->mkid.abID[64], wszFileName)), /* Vista */
"Filename should be stored as wchar-string at this position!\n");
}