CHAR Line[65];
UCHAR ch;
const char Hex[] = "0123456789ABCDEF";
- int i, j;
+ ULONG i, j;
DbgPrint("---------------\n");
{
/* it exist an other thread with empty wait slots, we can remove our thread from the list */
RemoveEntryList(&ThreadContext->ListEntry);
- ThreadContext->Vcb->EmptyWaiterCount -= MAXIMUM_WAIT_OBJECTS - 1;
+ ExFreePoolWithTag(ThreadContext, TAG_NPFS_THREAD_CONTEXT);
KeUnlockMutex(&ThreadContext->Vcb->PipeListLock);
break;
}
}
- ExFreePool(ThreadContext);
}
static NTSTATUS
if (ListEntry == &Vcb->ThreadListHead)
{
- ThreadContext = ExAllocatePool(NonPagedPool, sizeof(NPFS_THREAD_CONTEXT));
+ ThreadContext = ExAllocatePoolWithTag(NonPagedPool,
+ sizeof(NPFS_THREAD_CONTEXT),
+ TAG_NPFS_THREAD_CONTEXT);
if (ThreadContext == NULL)
{
KeUnlockMutex(&Vcb->PipeListLock);
(PVOID)ThreadContext);
if (!NT_SUCCESS(Status))
{
- ExFreePool(ThreadContext);
+ ExFreePoolWithTag(ThreadContext, TAG_NPFS_THREAD_CONTEXT);
KeUnlockMutex(&Vcb->PipeListLock);
return Status;
}
Buffer = (PVOID)((ULONG_PTR)Buffer + CopyLength);
Length -= CopyLength;
}
- else
+ else
{
KeResetEvent(&Ccb->ReadEvent);