From f08fe1086215eef489beda40c870b19caa1abb8a Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Mon, 17 Jul 2023 02:58:55 +0300 Subject: [PATCH] [FS::Dir] Fix command response headers --- src/core/kernel/directory_operations.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/kernel/directory_operations.cpp b/src/core/kernel/directory_operations.cpp index 816717547..6d4ac9631 100644 --- a/src/core/kernel/directory_operations.cpp +++ b/src/core/kernel/directory_operations.cpp @@ -4,6 +4,7 @@ #include #include +#include "ipc.hpp" #include "kernel.hpp" namespace DirectoryOps { @@ -104,6 +105,7 @@ void Kernel::closeDirectory(u32 messagePointer, Handle directory) { } p->getData()->isOpen = false; + mem.write32(messagePointer, IPC::responseHeader(0x802, 1, 0)); mem.write32(messagePointer + 4, Result::Success); } @@ -169,6 +171,7 @@ void Kernel::readDirectory(u32 messagePointer, Handle directory) { session->currentEntry++; // Increment index of the entry currently being read } + mem.write32(messagePointer, IPC::responseHeader(0x801, 2, 2)); mem.write32(messagePointer + 4, Result::Success); mem.write32(messagePointer + 8, count); }