mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:12:58 +00:00
[CMAKE]
- Sync with trunk r51050. svn path=/branches/cmake-bringup/; revision=51154
This commit is contained in:
commit
785bea480a
469 changed files with 16304 additions and 9647 deletions
|
@ -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 */
|
||||
|
@ -88,7 +89,7 @@ RtlInsertElementGenericTableFullAvl(IN PRTL_AVL_TABLE Table,
|
|||
}
|
||||
|
||||
/* Return status */
|
||||
if (NewElement) *NewElement = (SearchResult == TableFoundNode);
|
||||
if (NewElement) *NewElement = (SearchResult != TableFoundNode);
|
||||
|
||||
/* Return pointer to user data */
|
||||
return UserData;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue