[RTL/AVL]

- Zero out contents of a newly allocated AVL table node.

svn path=/trunk/; revision=50855
This commit is contained in:
Aleksey Bragin 2011-02-21 13:33:13 +00:00
parent 45efecf8e0
commit 70fcc31092

View file

@ -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 */