Author: fireball Date: Mon Feb 21 13:33:13 2011 New Revision: 50855
URL: http://svn.reactos.org/svn/reactos?rev=50855&view=rev Log: [RTL/AVL] - Zero out contents of a newly allocated AVL table node.
Modified: trunk/reactos/lib/rtl/avltable.c
Modified: trunk/reactos/lib/rtl/avltable.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/avltable.c?rev=5085... ============================================================================== --- trunk/reactos/lib/rtl/avltable.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/avltable.c [iso-8859-1] Mon Feb 21 13:33:13 2011 @@ -70,11 +70,12 @@ 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 */