From a776640c1a439db7192c98834cdd66092a21b243 Mon Sep 17 00:00:00 2001 From: Frederic Meyer Date: Wed, 17 Jan 2018 22:25:44 +0100 Subject: [PATCH] bsd: fix some wrong assumptions about IPC --- src/core/hle/service/bsd/bsd_u.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/hle/service/bsd/bsd_u.cpp b/src/core/hle/service/bsd/bsd_u.cpp index 8132a57815..2924de1e73 100644 --- a/src/core/hle/service/bsd/bsd_u.cpp +++ b/src/core/hle/service/bsd/bsd_u.cpp @@ -13,10 +13,8 @@ void BSD_U::RegisterClient(Kernel::HLERequestContext& ctx) { IPC::RequestBuilder rb{ctx, 3}; - // TODO(flerovium): first return value is BSD error number. Figure out what - // the second return value means. - rb.Push(0); - rb.Push(0); + rb.Push(RESULT_SUCCESS); + rb.Push(0); // bsd errno } void BSD_U::Socket(Kernel::HLERequestContext& ctx) { @@ -30,10 +28,11 @@ void BSD_U::Socket(Kernel::HLERequestContext& ctx) { u32 fd = next_fd++; - IPC::RequestBuilder rb{ctx, 3}; + IPC::RequestBuilder rb{ctx, 4}; + rb.Push(RESULT_SUCCESS); rb.Push(fd); - rb.Push(0); // bsd errno (no error) + rb.Push(0); // bsd errno } BSD_U::BSD_U() : ServiceFramework("bsd:u") {