rpcrt4/tests: Fix duplicate expressions in if conditions.

Michael Stefaniuc mstefani at redhat.de
Fri Mar 26 07:12:35 CDT 2010


---
Tested in WTB and it crashes on Win9x and NT (job 1158). Added some
traces (1201) but there is nothing to see. Tested without the changes
(1202) and rpcrt4 still crashes on Win9x and NT. So something else is
ajar and not this patch.



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

diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index b5987dc..569bd20 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -861,7 +861,7 @@ static int ps1_cmp(const void *s1, const void *s2, size_t num)
         if(*p1->pl1 != *p2->pl1)
             return 1;
     }
-    else if(p1->pl1 || p1->pl1)
+    else if(p1->pl1 || p2->pl1)
         return 1;
 
     if(p1->pc1 && p2->pc1)
@@ -869,7 +869,7 @@ static int ps1_cmp(const void *s1, const void *s2, size_t num)
         if(*p1->pc1 != *p2->pc1)
             return 1;
     }
-    else if(p1->pc1 || p1->pc1)
+    else if(p1->pc1 || p2->pc1)
         return 1;
 
     return 0;
-- 
1.7.0.2



More information about the wine-patches mailing list