From e2c0268d4b82e170605d9cc43e26be7f38f2eb54 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 4 Nov 2019 10:04:49 -0800 Subject: Better, I guess --- Source/Memory.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Memory.h') diff --git a/Source/Memory.h b/Source/Memory.h index 9c00dab..f70de6a 100644 --- a/Source/Memory.h +++ b/Source/Memory.h @@ -11,8 +11,7 @@ // http://stackoverflow.com/q/32798185 // http://stackoverflow.com/q/36018838 // http://stackoverflow.com/q/1387064 -class Memory -{ +class Memory { public: Memory(); bool Initialize(const std::wstring& processName); @@ -46,11 +45,12 @@ public: void AddSigScan(const std::vector& scanBytes, const std::function& scanFunc); int ExecuteSigScans(); - void ClearOffsets() {_computedAddresses = std::map();} - private: template std::vector ReadData(const std::vector& offsets, size_t numItems) { + if (GetExitCodeProcess(_process) != STILL_ACTIVE) { + // Signal error, somehow + } std::vector data; data.resize(numItems); for (int i=0; i<5; i++) { -- cgit 1.4.1