mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 20:29:46 +00:00
nvram: fix initialization bug.
This commit is contained in:
parent
b480903c7a
commit
c28fd138c2
@ -76,7 +76,7 @@ void NVram::init() {
|
|||||||
memcmp(sig, NVRAM_FILE_ID, sizeof(NVRAM_FILE_ID)) || data_size != this->ram_size ||
|
memcmp(sig, NVRAM_FILE_ID, sizeof(NVRAM_FILE_ID)) || data_size != this->ram_size ||
|
||||||
!f.read((char*)this->storage, this->ram_size)) {
|
!f.read((char*)this->storage, this->ram_size)) {
|
||||||
LOG_F(WARNING, "Could not restore NVRAM content from the given file.");
|
LOG_F(WARNING, "Could not restore NVRAM content from the given file.");
|
||||||
memset(this->storage, 0, sizeof(this->ram_size));
|
memset(this->storage, 0, this->ram_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
f.close();
|
f.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user