mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
don't free random pointer in MmCreateImageSection. should fix bug 836
svn path=/trunk/; revision=18140
This commit is contained in:
parent
87bf9958a5
commit
85e9a1fa72
1 changed files with 2 additions and 0 deletions
|
@ -3231,6 +3231,8 @@ MmCreateImageSection(PSECTION_OBJECT *SectionObject,
|
||||||
return(STATUS_NO_MEMORY);
|
return(STATUS_NO_MEMORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RtlZeroMemory(ImageSectionObject, sizeof(MM_IMAGE_SECTION_OBJECT));
|
||||||
|
|
||||||
StatusExeFmt = ExeFmtpCreateImageSection(FileHandle, ImageSectionObject);
|
StatusExeFmt = ExeFmtpCreateImageSection(FileHandle, ImageSectionObject);
|
||||||
|
|
||||||
if (!NT_SUCCESS(StatusExeFmt))
|
if (!NT_SUCCESS(StatusExeFmt))
|
||||||
|
|
Loading…
Reference in a new issue