mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Free all messages in LpcpDeletePort.
svn path=/trunk/; revision=17882
This commit is contained in:
parent
873253a8e9
commit
bae216e9d2
1 changed files with 20 additions and 2 deletions
|
@ -87,9 +87,27 @@ LpcpClosePort (PVOID ObjectBody, ULONG HandleCount)
|
|||
VOID STDCALL
|
||||
LpcpDeletePort (PVOID ObjectBody)
|
||||
{
|
||||
// PEPORT Port = (PEPORT)ObjectBody;
|
||||
PLIST_ENTRY Entry;
|
||||
PQUEUEDMESSAGE Message;
|
||||
|
||||
// DPRINT1("Deleting port %x\n", Port);
|
||||
PEPORT Port = (PEPORT)ObjectBody;
|
||||
|
||||
DPRINT("Deleting port %x\n", Port);
|
||||
|
||||
/* Free all waiting messages */
|
||||
while (!IsListEmpty(&Port->QueueListHead))
|
||||
{
|
||||
Entry = RemoveHeadList(&Port->QueueListHead);
|
||||
Message = CONTAINING_RECORD (Entry, QUEUEDMESSAGE, QueueListEntry);
|
||||
ExFreePool(Message);
|
||||
}
|
||||
|
||||
while (!IsListEmpty(&Port->ConnectQueueListHead))
|
||||
{
|
||||
Entry = RemoveHeadList(&Port->ConnectQueueListHead);
|
||||
Message = CONTAINING_RECORD (Entry, QUEUEDMESSAGE, QueueListEntry);
|
||||
ExFreePool(Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue