Skip to content

Commit

Permalink
fix: remove TODO + show error message when reading/write in process p…
Browse files Browse the repository at this point in the history
…rovider (WerWolv#1516)
  • Loading branch information
iTrooz authored Jan 26, 2024
1 parent d23d382 commit a4d6932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions main/gui/source/messaging/win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit a4d6932

Please sign in to comment.