Juan Lang : shell32: Fix a test on Windows Vista/2008.

Alexandre Julliard julliard at winehq.org
Fri Jan 30 07:58:21 CST 2009


Module: wine
Branch: master
Commit: 6728057954282b332bfa92a3ab61bd0ba447bf4e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6728057954282b332bfa92a3ab61bd0ba447bf4e

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Jan 29 17:46:49 2009 -0800

shell32: Fix a test on Windows Vista/2008.

---

 dlls/shell32/tests/shellpath.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c
index d3f85b9..25122a7 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: */




More information about the wine-cvs mailing list