diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-01-31 07:02:32 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-01-31 07:08:56 +0100 |
commit | 6cc769065d8e22b167013aa8f519dc6017ac8a2d (patch) | |
tree | 278ad194185edcecfc18ae0f43c5a9ca8571a1f7 /src/core/hle/service | |
parent | Merge pull request #5852 from ameerj/event-fd-stub (diff) | |
download | yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.gz yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.bz2 yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.lz yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.xz yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.zst yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/sockets/bsd.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp index 4ffb00902..9a5b32975 100644 --- a/src/core/hle/service/sockets/bsd.cpp +++ b/src/core/hle/service/sockets/bsd.cpp @@ -263,11 +263,15 @@ void BSD::GetSockOpt(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service, "(STUBBED) called. fd={} level={} optname=0x{:x}", fd, level, optname); + std::vector<u8> optval(ctx.GetWriteBufferSize()); + + ctx.WriteBuffer(optval); + IPC::ResponseBuilder rb{ctx, 5}; rb.Push(RESULT_SUCCESS); rb.Push<s32>(-1); rb.PushEnum(Errno::NOTCONN); - rb.Push<u32>(0); + rb.Push<u32>(static_cast<u32>(optval.size())); } void BSD::Listen(Kernel::HLERequestContext& ctx) { |