From 25d30ed1a68c6a1fbde1717fbe0aef20e664dd8e Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 26 Dec 2022 08:41:33 +0200 Subject: [PATCH] Get current thread --- Network/NetworkController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Network/NetworkController.cpp b/Network/NetworkController.cpp index c495df2..ab837ea 100644 --- a/Network/NetworkController.cpp +++ b/Network/NetworkController.cpp @@ -124,7 +124,7 @@ namespace NetworkInterfaceManager void NetworkInterface::StartService() { - this->NetSvcProcess = TaskManager->CreateProcess(nullptr, "Network Service", Tasking::TaskTrustLevel::System); + this->NetSvcProcess = TaskManager->CreateProcess(TaskManager->GetCurrentProcess(), "Network Service", Tasking::TaskTrustLevel::System); Vector auxv; auxv.push_back({.archaux = {.a_type = AT_NULL, .a_un = {.a_val = 0}}}); this->NetSvcThread = TaskManager->CreateThread(this->NetSvcProcess, (Tasking::IP)CallStartNetworkStackWrapper, nullptr, nullptr, auxv);