From 6728057954282b332bfa92a3ab61bd0ba447bf4e Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 29 Jan 2009 17:46:49 -0800 Subject: [PATCH] shell32: Fix a test on Windows Vista/2008. --- dlls/shell32/tests/shellpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c index d3f85b93682..25122a7eac0 100644 --- a/dlls/shell32/tests/shellpath.c +++ b/dlls/shell32/tests/shellpath.c @@ -299,8 +299,8 @@ static void testSHGetFolderLocationInvalidArgs(void) /* check a bogus user token: */ pidl = NULL; hr = pSHGetFolderLocation(NULL, CSIDL_FAVORITES, (HANDLE)2, 0, &pidl); - ok(hr == E_FAIL, - "SHGetFolderLocation(NULL, CSIDL_FAVORITES, 2, 0, &pidl) returned 0x%08x, expected E_FAIL\n", hr); + ok(hr == E_FAIL || hr == E_HANDLE, + "SHGetFolderLocation(NULL, CSIDL_FAVORITES, 2, 0, &pidl) returned 0x%08x, expected E_FAIL or E_HANDLE\n", hr); if (SUCCEEDED(hr)) IMalloc_Free(pMalloc, pidl); /* check reserved is not zero: */