summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-03-16 17:50:44 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-03-16 17:50:44 +0100
commit8441094ba3962987676061a2736a4a587cacad56 (patch)
treecdb861212e7d29c96ccbf7d5976ba6c418628b79
parentMerge pull request #6069 from Morph1984/ngWord (diff)
downloadyuzu-8441094ba3962987676061a2736a4a587cacad56.tar
yuzu-8441094ba3962987676061a2736a4a587cacad56.tar.gz
yuzu-8441094ba3962987676061a2736a4a587cacad56.tar.bz2
yuzu-8441094ba3962987676061a2736a4a587cacad56.tar.lz
yuzu-8441094ba3962987676061a2736a4a587cacad56.tar.xz
yuzu-8441094ba3962987676061a2736a4a587cacad56.tar.zst
yuzu-8441094ba3962987676061a2736a4a587cacad56.zip
-rw-r--r--src/core/hle/service/sockets/bsd.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp
index 78e9cd708..5fcd91f68 100644
--- a/src/core/hle/service/sockets/bsd.cpp
+++ b/src/core/hle/service/sockets/bsd.cpp
@@ -42,7 +42,9 @@ void BSD::PollWork::Execute(BSD* bsd) {
}
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};
rb.Push(RESULT_SUCCESS);
@@ -55,7 +57,9 @@ void BSD::AcceptWork::Execute(BSD* bsd) {
}
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};
rb.Push(RESULT_SUCCESS);