Merge pull request #5108
a873823CAutoFile: Explicit Get() and remove unused methods (Wladimir J. van der Laan)fef24caAdd IsNull() to class CAutoFile and remove operator ! (Ruben Dario Ponticeli)
This commit is contained in:
@@ -36,7 +36,7 @@ bool read_block(const std::string& filename, CBlock& block)
|
||||
fseek(fp, 8, SEEK_SET); // skip msgheader/size
|
||||
|
||||
CAutoFile filein(fp, SER_DISK, CLIENT_VERSION);
|
||||
if (!filein) return false;
|
||||
if (filein.IsNull()) return false;
|
||||
|
||||
filein >> block;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user