comctl32/mru: Fix test failures on Win9x

Nikolay Sivov bunglehead at gmail.com
Mon May 25 16:20:24 CDT 2009


Last commit causes a single failure (success actually) on
MRU list creation under Win9x. This patch turns it to broken().

>From 7307e615ef65fe329c6baba21c574a0c1c745496 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 25 May 2009 23:51:54 +0400
Subject: Fix test failures on Win9x

---
 dlls/comctl32/tests/mru.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/tests/mru.c b/dlls/comctl32/tests/mru.c
index ea05e02..c4da87b 100644
--- a/dlls/comctl32/tests/mru.c
+++ b/dlls/comctl32/tests/mru.c
@@ -430,9 +430,9 @@ static void test_CreateMRUListLazyA(void)
     HKEY hKey;
     CREATEMRULISTA listA = { 0 };
 
-    if (!pCreateMRUListLazyA)
+    if (!pCreateMRUListLazyA || !pFreeMRUList)
     {
-        win_skip("CreateMRUListLazyA entry point 157 not found\n");
+        win_skip("CreateMRUListLazyA or FreeMRUList entry points not found\n");
         return;
     }
 
@@ -455,7 +455,9 @@ static void test_CreateMRUListLazyA(void)
     listA.hKey = hKey;
     listA.lpszSubKey = NULL;
     hMRU = pCreateMRUListLazyA(&listA, 0, 0, 0);
-    ok(hMRU == NULL, "Expected NULL handle, got %p\n", hMRU);
+    ok(hMRU == NULL || broken(hMRU != NULL), /* Win9x */
+       "Expected NULL handle, got %p\n", hMRU);
+    if (hMRU) pFreeMRUList(hMRU);
 }
 
 static void test_EnumMRUList(void)
-- 
1.5.6.5





More information about the wine-patches mailing list