shell32: Fix a test on Windows Vista/2008.

This commit is contained in:
Juan Lang 2009-01-29 17:46:49 -08:00 committed by Alexandre Julliard
parent e5fcbad5b6
commit 6728057954
1 changed files with 2 additions and 2 deletions

View File

@ -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: */