imagehlp: Fixed computation of SizeOfImage in MapAndLoad.
This commit is contained in:
parent
7ae71a92a2
commit
5dbb25170e
|
@ -199,7 +199,7 @@ BOOL WINAPI MapAndLoad(LPSTR pszImageName, LPSTR pszDllPath, PLOADED_IMAGE pLoad
|
|||
((LPBYTE) &pNtHeader->OptionalHeader +
|
||||
pNtHeader->FileHeader.SizeOfOptionalHeader);
|
||||
pLoadedImage->NumberOfSections = pNtHeader->FileHeader.NumberOfSections;
|
||||
pLoadedImage->SizeOfImage = pNtHeader->OptionalHeader.SizeOfImage;
|
||||
pLoadedImage->SizeOfImage = GetFileSize(hFile, NULL);
|
||||
pLoadedImage->Characteristics = pNtHeader->FileHeader.Characteristics;
|
||||
pLoadedImage->LastRvaSection = pLoadedImage->Sections;
|
||||
|
||||
|
|
Loading…
Reference in New Issue