Paul Vriens : shell32/tests: Fix some test failures on Windows 7.
Module: wine Branch: master Commit: 1da30597e41b7b05c98c4648e99ca723aa951926 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1da30597e41b7b05c98c4648e9... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Wed Nov 25 11:15:48 2009 +0100 shell32/tests: Fix some test failures on Windows 7. --- dlls/shell32/tests/shlfolder.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index ed3a8b5..831205a 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -472,7 +472,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) || - (pidlLast->mkid.cb >= 94 && !lstrcmpW((WCHAR*)&pidlLast->mkid.abID[64], wszFileName)), /* Vista */ + (pidlLast->mkid.cb >= 94 && !lstrcmpW((WCHAR*)&pidlLast->mkid.abID[64], wszFileName)) || /* Vista */ + (pidlLast->mkid.cb >= 98 && !lstrcmpW((WCHAR*)&pidlLast->mkid.abID[68], wszFileName)), /* Win7 */ "Filename should be stored as wchar-string at this position!\n"); } @@ -1529,7 +1530,8 @@ static void test_ITEMIDLIST_format(void) { "Last write time should match last access time!\n"); ok (!lstrcmpW(wszFile[i], pFileStructW->wszName) || - !lstrcmpW(wszFile[i], (WCHAR *)(pFileStructW->abFooBar2 + 22)), /* Vista */ + !lstrcmpW(wszFile[i], (WCHAR *)(pFileStructW->abFooBar2 + 22)) || /* Vista */ + !lstrcmpW(wszFile[i], (WCHAR *)(pFileStructW->abFooBar2 + 26)), /* Win7 */ "The filename should be stored in unicode at this position!\n"); } }
participants (1)
-
Alexandre Julliard