1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Error log spamming when viewing invalid regions in process memory provider on linux

This commit is contained in:
WerWolv 2024-07-21 20:24:23 +02:00
parent 13fd956039
commit 09b6c2ab5b

View File

@ -81,10 +81,7 @@ namespace hex::plugin::builtin {
};
auto read = process_vm_readv(m_processId, &local, 1, &remote, 1, 0);
if (read == -1) {
log::error("Process memory provider failed to read data: {}", strerror(errno));
}
hex::unused(read);
#endif
}
void ProcessMemoryProvider::writeRaw(u64 address, const void *buffer, size_t size) {
@ -109,10 +106,8 @@ namespace hex::plugin::builtin {
.iov_len = size,
};
auto read = process_vm_writev(m_processId, &local, 1, &remote, 1, 0);
if (read == -1) {
log::error("Process memory provider failed to write data: {}", strerror(errno));
}
auto write = process_vm_writev(m_processId, &local, 1, &remote, 1, 0);
hex::unused(write);
#endif
}