imagehlp: Fixed computation of SizeOfImage in MapAndLoad.

This commit is contained in:
Eric Pouech 2007-01-03 14:39:33 +01:00 committed by Alexandre Julliard
parent 7ae71a92a2
commit 5dbb25170e
1 changed files with 1 additions and 1 deletions

View File

@ -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;