[PATCH] msi/tests: Break out of the loop if both components are found in test_MsiEnumComponentsEx.

Hans Leidekker hans at codeweavers.com
Wed May 16 03:23:38 CDT 2018


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/msi/tests/msi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c
index 21a0358aa2..62afa6e747 100644
--- a/dlls/msi/tests/msi.c
+++ b/dlls/msi/tests/msi.c
@@ -13392,6 +13392,7 @@ static void test_MsiEnumComponentsEx(void)
             ok( !sid[0], "got \"%s\"\n", sid );
             ok( !len, "unexpected length %u\n", len );
             found1 = TRUE;
+            if (found2) break;
         }
         if (!strcmp( comp2, guid ))
         {
@@ -13399,6 +13400,7 @@ static void test_MsiEnumComponentsEx(void)
             ok( sid[0], "empty sid\n" );
             ok( len == strlen(sid), "unexpected length %u\n", len );
             found2 = TRUE;
+            if (found1) break;
         }
         index++;
         guid[0] = 0;
-- 
2.11.0




More information about the wine-devel mailing list