return STATUS_FLOPPY_VOLUME;
}
- PagingFile = ExAllocatePool(NonPagedPool, sizeof(*PagingFile));
+ PagingFile = ExAllocatePoolWithTag(NonPagedPool, sizeof(*PagingFile), TAG_MM);
if (PagingFile == NULL)
{
ObDereferenceObject(FileObject);
ZwClose(FileHandle);
ExFreePoolWithTag(Buffer, TAG_MM);
- return STATUS_NO_MEMORY;
+ return STATUS_INSUFFICIENT_RESOURCES;
}
RtlZeroMemory(PagingFile, sizeof(*PagingFile));
TAG_MM);
if (PagingFile->AllocMap == NULL)
{
- ExFreePool(PagingFile);
+ ExFreePoolWithTag(PagingFile, TAG_MM);
ObDereferenceObject(FileObject);
ZwClose(FileHandle);
ExFreePoolWithTag(Buffer, TAG_MM);
- return STATUS_NO_MEMORY;
+ return STATUS_INSUFFICIENT_RESOURCES;
}
RtlInitializeBitMap(PagingFile->AllocMap,
MmSwapSpaceMessage = FALSE;
- return(STATUS_SUCCESS);
+ return STATUS_SUCCESS;
}
/* EOF */