From 6e305f061532126cfcf0c598d3d0fe9155177a04 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 18 Feb 2011 09:48:13 +0000 Subject: [PATCH] [RTL/AVL] - Fix an inverted condition which resulted in incorrect assignment of NewElement var in RtlInsertElementGenericTableAvl(). svn path=/trunk/; revision=50784 --- reactos/lib/rtl/avltable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/avltable.c b/reactos/lib/rtl/avltable.c index acfb99d4a64..6578a71d972 100644 --- a/reactos/lib/rtl/avltable.c +++ b/reactos/lib/rtl/avltable.c @@ -88,7 +88,7 @@ RtlInsertElementGenericTableFullAvl(IN PRTL_AVL_TABLE Table, } /* Return status */ - if (NewElement) *NewElement = (SearchResult == TableFoundNode); + if (NewElement) *NewElement = (SearchResult != TableFoundNode); /* Return pointer to user data */ return UserData; -- 2.17.1