mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:43:25 +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
1 changed files with 2 additions and 1 deletions
|
@ -70,11 +70,12 @@ RtlInsertElementGenericTableFullAvl(IN PRTL_AVL_TABLE Table,
|
||||||
if (NewElement) *NewElement = FALSE;
|
if (NewElement) *NewElement = FALSE;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Data to return to user */
|
/* Data to return to user */
|
||||||
UserData = &((PTABLE_ENTRY_HEADER)NewNode)->UserData;
|
UserData = &((PTABLE_ENTRY_HEADER)NewNode)->UserData;
|
||||||
|
|
||||||
/* Insert the node in the tree */
|
/* Insert the node in the tree */
|
||||||
|
RtlZeroMemory(NewNode, sizeof(RTL_BALANCED_LINKS));
|
||||||
RtlpInsertAvlTreeNode(Table, NewNode, NodeOrParent, SearchResult);
|
RtlpInsertAvlTreeNode(Table, NewNode, NodeOrParent, SearchResult);
|
||||||
|
|
||||||
/* Copy user buffer */
|
/* Copy user buffer */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue