general: Write buffers before pushing raw arguments

For consistency with the rest of the service implementations
This commit is contained in:
Morph 2021-04-19 12:45:26 -04:00
parent 9e7713c150
commit 27eeb20001
3 changed files with 12 additions and 5 deletions

View file

@ -104,9 +104,10 @@ void GetKeyCodeMapImpl(Kernel::HLERequestContext& ctx) {
layout = key_code->second;
}
ctx.WriteBuffer(layout);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
ctx.WriteBuffer(layout);
}
} // Anonymous namespace