[NTOSKRNL]

- Gracefully fail when there is no more pool space left
- Mm already prints plenty of warnings in this case

svn path=/trunk/; revision=54577
This commit is contained in:
Cameron Gutman 2011-12-03 22:46:15 +00:00
parent 621c5a5680
commit a4479b14cd

View file

@ -686,7 +686,9 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
// There were no free entries left, so we have to allocate a new fresh page
//
Entry = MiAllocatePoolPages(PoolType, PAGE_SIZE);
ASSERT(Entry != NULL);
if (Entry == NULL)
return NULL;
Entry->Ulong1 = 0;
Entry->BlockSize = i;
Entry->PoolType = PoolType + 1;