diff --git a/Example/HWSyscalls-Example/HWSyscalls-Example.vcxproj b/Example/HWSyscalls-Example/HWSyscalls-Example.vcxproj
index e57aab6..65e2689 100644
--- a/Example/HWSyscalls-Example/HWSyscalls-Example.vcxproj
+++ b/Example/HWSyscalls-Example/HWSyscalls-Example.vcxproj
@@ -130,8 +130,9 @@
trueNDEBUG;_CONSOLE;%(PreprocessorDefinitions)true
- Disabled
+ MaxSpeedstdcpp20
+ trueConsole
diff --git a/Example/HWSyscalls-Example/HWSyscalls.cpp b/Example/HWSyscalls-Example/HWSyscalls.cpp
index 4e11569..5a15ef4 100644
--- a/Example/HWSyscalls-Example/HWSyscalls.cpp
+++ b/Example/HWSyscalls-Example/HWSyscalls.cpp
@@ -183,9 +183,11 @@ DWORD64 FindSyscallReturnAddress(DWORD64 functionAddress, WORD syscallNumber) {
#pragma endregion
+#pragma optimize("", off)
UINT64 PrepareSyscall(char* functionName) {
return ntFunctionAddress;
}
+#pragma optimize("", on)
bool SetMainBreakpoint() {
// Dynamically find the GetThreadContext and SetThreadContext functions
diff --git a/README.md b/README.md
index 90e221c..e372028 100644
--- a/README.md
+++ b/README.md
@@ -91,9 +91,7 @@ The debug verbosity can be turned on or off by changing the `HWSYSCALLS_DEBUG` d
## Setup
-To compile this project you will need Visual Studio 2019 and forward.
-It is important to note that this project was made only for x64 environments and needs to be compiled without optimization.
-You can disable it from Project Settings -> C/C++ -> Optimization -> Optimization (Disabled /Od).
+To compile this project you will need Visual Studio 2019 and forward. Furthermore, it is important to note that this project was made only for x64 environments.
## Example
diff --git a/Src/HWSyscalls.cpp b/Src/HWSyscalls.cpp
index 4e11569..5a15ef4 100644
--- a/Src/HWSyscalls.cpp
+++ b/Src/HWSyscalls.cpp
@@ -183,9 +183,11 @@ DWORD64 FindSyscallReturnAddress(DWORD64 functionAddress, WORD syscallNumber) {
#pragma endregion
+#pragma optimize("", off)
UINT64 PrepareSyscall(char* functionName) {
return ntFunctionAddress;
}
+#pragma optimize("", on)
bool SetMainBreakpoint() {
// Dynamically find the GetThreadContext and SetThreadContext functions