Hans Leidekker : msi/tests: Break out of the loop if both components are found in test_MsiEnumComponentsEx.

Alexandre Julliard julliard at winehq.org
Wed May 16 17:30:27 CDT 2018


Module: wine
Branch: master
Commit: f5b1a6b5c507fd2766725251af00efa5eb8431ee
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f5b1a6b5c507fd2766725251af00efa5eb8431ee

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed May 16 10:23:38 2018 +0200

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

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 21a0358..62afa6e 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;




More information about the wine-cvs mailing list