mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +00:00
ntoskrnl: fix pointer dereference before testing for it
svn path=/trunk/; revision=55975
This commit is contained in:
parent
f99547ad97
commit
3e4f41c5e9
1 changed files with 1 additions and 1 deletions
2
reactos/ntoskrnl/cache/section/sptab.c
vendored
2
reactos/ntoskrnl/cache/section/sptab.c
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue