https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4f51867f228c5ba44fe980fe6805faad23907912

commit 4f51867f228c5ba44fe980fe6805faad23907912
Author:     winesync <[email protected]>
AuthorDate: Sat Mar 12 15:12:17 2022 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Sun Mar 20 19:27:45 2022 +0100

    [WINESYNC] msi/tests: Break out of the loop if both components are found in 
test_MsiEnumComponentsEx.
    
    Signed-off-by: Hans Leidekker <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id f5b1a6b5c507fd2766725251af00efa5eb8431ee by Hans Leidekker 
<[email protected]>
---
 modules/rostests/winetests/msi/msi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/rostests/winetests/msi/msi.c 
b/modules/rostests/winetests/msi/msi.c
index a91b1e38c91..d72264ea5e2 100644
--- a/modules/rostests/winetests/msi/msi.c
+++ b/modules/rostests/winetests/msi/msi.c
@@ -13400,6 +13400,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 ))
         {
@@ -13407,6 +13408,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;

Reply via email to