[NTOS/MM] Ensure ImageBase is not used uninitialized

This commit is contained in:
Mark Jansen 2019-04-27 23:58:01 +02:00
parent 77d234b049
commit 2450dec427
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -197,7 +197,7 @@ NTSTATUS NTAPI PeFmtCreateSection(IN CONST VOID * FileHeader,
ULONG cbHeadersSize = 0;
ULONG nSectionAlignment;
ULONG nFileAlignment;
ULONG_PTR ImageBase;
ULONG_PTR ImageBase = 0;
const IMAGE_DOS_HEADER * pidhDosHeader;
const IMAGE_NT_HEADERS32 * pinhNtHeader;
const IMAGE_OPTIONAL_HEADER32 * piohOptHeader;