We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef597aa commit e08b9a8Copy full SHA for e08b9a8
src/wsjcpp_hashes.cpp
@@ -45,12 +45,11 @@ std::string WsjcppHashes::getMd5ByFile(const std::string &sFilename) {
45
f.read(pBuffer, nBufferSize);
46
if (!f) {
47
delete[] pBuffer;
48
- f.close();
+ // f.close();
49
return "Could not read file. Only " + std::to_string(f.gcount()) + " could be read";
50
}
51
f.close();
52
53
-
54
MD5 md5;
55
md5.update(pBuffer, nBufferSize);
56
md5.finalize();
@@ -84,7 +83,7 @@ std::string WsjcppHashes::getSha1ByFile(const std::string &sFilename) {
84
83
85
86
87
88
89
90
0 commit comments