diff options
Diffstat (limited to 'WitnessRandomizer/Memory.h')
-rw-r--r-- | WitnessRandomizer/Memory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WitnessRandomizer/Memory.h b/WitnessRandomizer/Memory.h index 2453cf0..6b50948 100644 --- a/WitnessRandomizer/Memory.h +++ b/WitnessRandomizer/Memory.h | |||
@@ -24,10 +24,11 @@ public: | |||
24 | } | 24 | } |
25 | 25 | ||
26 | template <class T> | 26 | template <class T> |
27 | void WriteData(const std::vector<int>& offsets, const std::vector<T>& data) { | 27 | bool WriteData(const std::vector<int>& offsets, const std::vector<T>& data) { |
28 | if (!WriteProcessMemory(_handle, (LPVOID)ComputeOffset(offsets), &data[0], sizeof(T) * data.size(), NULL)) { | 28 | if (!WriteProcessMemory(_handle, (LPVOID)ComputeOffset(offsets), &data[0], sizeof(T) * data.size(), NULL)) { |
29 | ThrowError(); | 29 | return false; |
30 | } | 30 | } |
31 | return true; | ||
31 | } | 32 | } |
32 | 33 | ||
33 | private: | 34 | private: |