diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2020-11-02 11:15:50 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2020-11-02 11:15:50 +0300 |
commit | d7f0302ce721c28ab9b4928ac5e65c0670f9d266 (patch) | |
tree | 32534f6da4ee1e263e08a40b65750d00b1b95c57 /plugins/HostWindows.h | |
parent | a3086acade84abfe8f05afab8350897134e3508d (diff) |
REFAC(plugins): Use Toolhelp32ReadProcessMemory() instead of ReadProcessMemory()
Toolhelp32ReadProcessMemory() takes the process ID, as opposed to ReadProcessMemory().
This allows us to read memory without the need for an handle (OpenProcess()).
Diffstat (limited to 'plugins/HostWindows.h')
-rw-r--r-- | plugins/HostWindows.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/HostWindows.h b/plugins/HostWindows.h index a8253669e..5c8b88852 100644 --- a/plugins/HostWindows.h +++ b/plugins/HostWindows.h @@ -17,7 +17,6 @@ class HostWindows { protected: bool m_ok; procid_t m_pid; - void *m_handle; public: inline bool isOk() const { return m_ok; } |