mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
bsd: Avoid writing empty buffers
Silences log spam on empty buffer writes
This commit is contained in:
parent
0687a8370d
commit
8441094ba3
1 changed files with 6 additions and 2 deletions
|
@ -42,7 +42,9 @@ void BSD::PollWork::Execute(BSD* bsd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BSD::PollWork::Response(Kernel::HLERequestContext& ctx) {
|
void BSD::PollWork::Response(Kernel::HLERequestContext& ctx) {
|
||||||
ctx.WriteBuffer(write_buffer);
|
if (write_buffer.size() > 0) {
|
||||||
|
ctx.WriteBuffer(write_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 4};
|
IPC::ResponseBuilder rb{ctx, 4};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
@ -55,7 +57,9 @@ void BSD::AcceptWork::Execute(BSD* bsd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BSD::AcceptWork::Response(Kernel::HLERequestContext& ctx) {
|
void BSD::AcceptWork::Response(Kernel::HLERequestContext& ctx) {
|
||||||
ctx.WriteBuffer(write_buffer);
|
if (write_buffer.size() > 0) {
|
||||||
|
ctx.WriteBuffer(write_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 5};
|
IPC::ResponseBuilder rb{ctx, 5};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
|
Loading…
Reference in a new issue