mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTOS]: Don't hardcode the size of the ShutDownWaitEntry and use the correct pool tags when freeing the entry.
svn path=/trunk/; revision=66866
This commit is contained in:
parent
4f573a59dc
commit
79243bfdce
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ PoRequestShutdownWait(
|
|||
PAGED_CODE();
|
||||
|
||||
/* Allocate a new shutdown wait entry */
|
||||
ShutDownWaitEntry = ExAllocatePoolWithTag(PagedPool, 8u, 'LSoP');
|
||||
ShutDownWaitEntry = ExAllocatePoolWithTag(PagedPool, sizeof(*ShutDownWaitEntry), 'LSoP');
|
||||
if (ShutDownWaitEntry == NULL)
|
||||
{
|
||||
return STATUS_NO_MEMORY;
|
||||
|
@ -84,7 +84,7 @@ PoRequestShutdownWait(
|
|||
{
|
||||
/* We cannot proceed, cleanup and return failure */
|
||||
ObDereferenceObject(Thread);
|
||||
ExFreePoolWithTag(ShutDownWaitEntry, 0);
|
||||
ExFreePoolWithTag(ShutDownWaitEntry, 'LSoP');
|
||||
Status = STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@ PopProcessShutDownLists(VOID)
|
|||
ObfDereferenceObject(ShutDownWaitEntry->Thread);
|
||||
|
||||
/* Finally free the entry */
|
||||
ExFreePoolWithTag(ShutDownWaitEntry, 0);
|
||||
ExFreePoolWithTag(ShutDownWaitEntry, 'LSoP');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue