mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 06:42:46 +00:00
bsd: Fix GetSockOpt stub
This commit is contained in:
parent
360ea64738
commit
6cc769065d
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue