Change RTL::LinkedList::RemoveEntryList() routine signature
This commit is contained in:
@@ -26,7 +26,7 @@ namespace RTL
|
||||
IN PLIST_ENTRY Entry);
|
||||
STATIC XTCDECL BOOLEAN ListEmpty(IN PLIST_ENTRY ListHead);
|
||||
STATIC XTCDECL BOOLEAN ListLoop(IN PLIST_ENTRY ListHead);
|
||||
STATIC XTCDECL VOID RemoveEntryList(IN PLIST_ENTRY Entry);
|
||||
STATIC XTCDECL BOOLEAN RemoveEntryList(IN PLIST_ENTRY Entry);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -763,16 +763,16 @@ RtlMultiplyLargeInteger(IN LARGE_INTEGER Multiplicand,
|
||||
* @param Entry
|
||||
* Pointer to the entry that will be removed from the list.
|
||||
*
|
||||
* @return This routine does not return any value.
|
||||
* @return This routine returns TRUE if the list is empty after removal, or FALSE otherwise.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTCLINK
|
||||
XTCDECL
|
||||
VOID
|
||||
BOOLEAN
|
||||
RtlRemoveEntryList(IN PLIST_ENTRY Entry)
|
||||
{
|
||||
RTL::LinkedList::RemoveEntryList(Entry);
|
||||
return RTL::LinkedList::RemoveEntryList(Entry);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -162,14 +162,18 @@ RTL::LinkedList::ListLoop(IN PLIST_ENTRY ListHead)
|
||||
* @param Entry
|
||||
* Pointer to the entry that will be removed from the list.
|
||||
*
|
||||
* @return This routine does not return any value.
|
||||
* @return This routine returns TRUE if the list is empty after removal, or FALSE otherwise.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
BOOLEAN
|
||||
RTL::LinkedList::RemoveEntryList(IN PLIST_ENTRY Entry)
|
||||
{
|
||||
/* Remove entry from the list */
|
||||
Entry->Flink->Blink = Entry->Blink;
|
||||
Entry->Blink->Flink = Entry->Flink;
|
||||
|
||||
/* Return TRUE if list is empty, or FALSE otherwise */
|
||||
return (BOOLEAN)(Entry->Blink == Entry->Flink);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user