ntoskrnl: fix pointer dereference before testing for it

svn path=/trunk/; revision=55975
This commit is contained in:
Hervé Poussineau 2012-03-03 21:11:42 +00:00
parent f99547ad97
commit 3e4f41c5e9

View file

@ -117,12 +117,12 @@ MiSectionPageTableGetOrAllocate
SectionZeroPageTable.Refcount = 1;
PageTableSlice = RtlInsertElementGenericTable
(Table, &SectionZeroPageTable, sizeof(SectionZeroPageTable), NULL);
if (!PageTableSlice) return NULL;
DPRINT
("Allocate page table %x (%08x%08x)\n",
PageTableSlice,
PageTableSlice->FileOffset.u.HighPart,
PageTableSlice->FileOffset.u.LowPart);
if (!PageTableSlice) return NULL;
}
return PageTableSlice;
}