From 54cd8dbe7014a7c4d1312b7ff1c216bc6d80e303 Mon Sep 17 00:00:00 2001
From: ergo720 <45463469+ergo720@users.noreply.github.com>
Date: Thu, 22 Aug 2024 00:47:22 +0200
Subject: [PATCH] Enabled IofCallDriver and IoFreeIrp in the kernel thunk

---
 nboxkrnl/ke/thunk.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nboxkrnl/ke/thunk.cpp b/nboxkrnl/ke/thunk.cpp
index 133ea0e..5e2f9b0 100644
--- a/nboxkrnl/ke/thunk.cpp
+++ b/nboxkrnl/ke/thunk.cpp
@@ -92,7 +92,7 @@ ULONG KernelThunkTable[379] =
 	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IoDeleteSymbolicLink),                    // 0x0045 (69)
 	(ULONG)VARIABLE(&IoDeviceObjectType),                  // 0x0046 (70)
 	(ULONG)VARIABLE(&IoFileObjectType),                    // 0x0047 (71)
-	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IoFreeIrp),                               // 0x0048 (72)
+	(ULONG)FUNC(&IoFreeIrp),                               // 0x0048 (72)
 	(ULONG)FUNC(&IoInitializeIrp),                         // 0x0049 (73)
 	(ULONG)FUNC(&IoInvalidDeviceRequest),                  // 0x004A (74)
 	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IoQueryFileInformation),                  // 0x004B (75)
@@ -106,7 +106,7 @@ ULONG KernelThunkTable[379] =
 	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IoStartPacket),                           // 0x0053 (83)
 	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IoSynchronousDeviceIoControlRequest),     // 0x0054 (84)
 	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IoSynchronousFsdRequest),                 // 0x0055 (85)
-	(ULONG)FUNC(nullptr), //(ULONG)FUNC(&IofCallDriver),                           // 0x0056 (86)
+	(ULONG)FUNC(&IofCallDriver),                           // 0x0056 (86)
 	(ULONG)FUNC(&IofCompleteRequest),                      // 0x0057 (87)
 	(ULONG)FUNC(nullptr), //(ULONG)VARIABLE(&KdDebuggerEnabled),                   // 0x0058 (88)
 	(ULONG)FUNC(nullptr), //(ULONG)VARIABLE(&KdDebuggerNotPresent),                // 0x0059 (89)