mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 14:09:10 +00:00
[RTL/AVL]
- Zero out contents of a newly allocated AVL table node. svn path=/trunk/; revision=50855
This commit is contained in:
parent
45efecf8e0
commit
70fcc31092
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue