Skip to content

Commit

Permalink
WIP fixes (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed May 10, 2024
1 parent a56122b commit 4297a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BKImgFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ std::wstring CBKImgFile::CalcImageSHA1()
if (!m_f)
return L"";

const size_t bufferSizeInBlocks = 16;
const size_t bufferSizeInBlocks = 32;
const size_t bufferSizeInBytes = BLOCK_SIZE * bufferSizeInBlocks;

long sizeTotal = GetFileSize();
Expand Down
2 changes: 1 addition & 1 deletion imgos/BKFloppyImage_Prototype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ std::wstring CBKFloppyImage_Prototype::CalcFileSHA1(BKDirDataItem *fr)
if (fr == nullptr || (fr->nAttr & (FR_ATTR::DIR | FR_ATTR::LINK)) != 0)
return L"";

std::vector<uint8_t> vec(fr->nSize);
std::vector<uint8_t> vec(EvenSizeByBlock(fr->nSize));
if (!ReadFile(fr, vec.data()))
{
//TODO: Показать ошибку
Expand Down

0 comments on commit 4297a7a

Please sign in to comment.