diff --git a/src/driver/memory.cpp b/src/driver/memory.cpp index a462074..235d465 100644 --- a/src/driver/memory.cpp +++ b/src/driver/memory.cpp @@ -124,7 +124,7 @@ namespace memory } } - bool prope_for_read(const void* address, const size_t length, const uint64_t alignment) + bool probe_for_read(const void* address, const size_t length, const uint64_t alignment) { __try { @@ -139,13 +139,13 @@ namespace memory void assert_readability(const void* address, const size_t length, const uint64_t alignment) { - if (!prope_for_read(address, length, alignment)) + if (!probe_for_read(address, length, alignment)) { throw std::runtime_error("Access violation"); } } - bool prope_for_write(const void* address, const size_t length, const uint64_t alignment) + bool probe_for_write(const void* address, const size_t length, const uint64_t alignment) { __try { @@ -160,7 +160,7 @@ namespace memory void assert_writability(const void* address, const size_t length, const uint64_t alignment) { - if (!prope_for_write(address, length, alignment)) + if (!probe_for_write(address, length, alignment)) { throw std::runtime_error("Access violation"); } diff --git a/src/driver/memory.hpp b/src/driver/memory.hpp index 3fae1c6..f1b028e 100644 --- a/src/driver/memory.hpp +++ b/src/driver/memory.hpp @@ -27,10 +27,10 @@ namespace memory _IRQL_requires_max_(DISPATCH_LEVEL) void free_non_paged_memory(void* memory); - bool prope_for_read(const void* address, size_t length, uint64_t alignment = 1); + bool probe_for_read(const void* address, size_t length, uint64_t alignment = 1); void assert_readability(const void* address, size_t length, uint64_t alignment = 1); - bool prope_for_write(const void* address, size_t length, uint64_t alignment = 1); + bool probe_for_write(const void* address, size_t length, uint64_t alignment = 1); void assert_writability(const void* address, size_t length, uint64_t alignment = 1); template