From 70fcc310923b127eef11632f700e09cc03bcb9cf Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 21 Feb 2011 13:33:13 +0000 Subject: [PATCH] [RTL/AVL] - Zero out contents of a newly allocated AVL table node. svn path=/trunk/; revision=50855 --- reactos/lib/rtl/avltable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/lib/rtl/avltable.c b/reactos/lib/rtl/avltable.c index 6578a71d972..2b5c6085f00 100644 --- a/reactos/lib/rtl/avltable.c +++ b/reactos/lib/rtl/avltable.c @@ -70,11 +70,12 @@ RtlInsertElementGenericTableFullAvl(IN PRTL_AVL_TABLE Table, if (NewElement) *NewElement = FALSE; return NULL; } - + /* Data to return to user */ UserData = &((PTABLE_ENTRY_HEADER)NewNode)->UserData; /* Insert the node in the tree */ + RtlZeroMemory(NewNode, sizeof(RTL_BALANCED_LINKS)); RtlpInsertAvlTreeNode(Table, NewNode, NodeOrParent, SearchResult); /* Copy user buffer */