Removed warnings in Visual Studio

This commit is contained in:
Ladislav Zezula 2020-12-18 07:27:32 +01:00
parent a5374a34af
commit c9ddd13a60
2 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ class ImageLoader
std::uint64_t getSizeOfFile() const
{
return fileSize;
return savedFileSize;
}
std::uint64_t getOrdinalMask() const
@ -451,7 +451,7 @@ class ImageLoader
PELIB_IMAGE_OPTIONAL_HEADER optionalHeader; // 32/64-bit optional header
ByteBuffer rawFileData; // Loaded content of the image in case it couldn't have been mapped
LoaderError ldrError;
std::uint64_t fileSize; // Size of the raw file
std::uint64_t savedFileSize; // Size of the raw file
std::uint32_t windowsBuildNumber;
std::uint32_t ntSignature;
std::uint32_t maxSectionCount;

View File

@ -872,7 +872,7 @@ int PeLib::ImageLoader::Load(
int fileError;
// Remember the size of the file for later use
fileSize = fileData.size();
savedFileSize = fileData.size();
// Check and capture DOS header
fileError = captureDosHeader(fileData);