fix: remove TODO + show error message when reading/write in process provider (#1516)
This commit is contained in:
parent
d23d382038
commit
a4d6932ed8
@ -45,8 +45,6 @@ namespace hex::messaging {
|
||||
HWND imHexWindow = *getImHexWindow();
|
||||
|
||||
// Create the message
|
||||
// TODO actually send all arguments and not just the eventName
|
||||
|
||||
std::vector<u8> fulleventData(eventName.begin(), eventName.end());
|
||||
fulleventData.push_back('\0');
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace hex::plugin::builtin {
|
||||
auto read = process_vm_readv(m_processId, &local, 1, &remote, 1, 0);
|
||||
|
||||
if (read == -1) {
|
||||
// TODO error handling strerror(errno)
|
||||
log::error("Process memory provider failed to read data: {}", strerror(errno));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@ -82,7 +82,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
auto read = process_vm_writev(m_processId, &local, 1, &remote, 1, 0);
|
||||
if (read == -1) {
|
||||
// TODO error handling strerror(errno)
|
||||
log::error("Process memory provider failed to write data: {}", strerror(errno));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user