Some typos (#7908)

* sys_lwcond: replace writer lock with reader lock

* sys_rsx: Typo fix

* sys_net: Fixup for buffer reading
This commit is contained in:
Eladash 2020-03-31 16:44:50 +03:00 committed by GitHub
parent 29be815302
commit fdd7f0645d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -1297,7 +1297,16 @@ error_code sys_net_bnet_sendto(ppu_thread& ppu, s32 s, vm::cptr<void> buf, u32 l
int native_flags = 0;
int native_result = -1;
::sockaddr_in name{};
std::string _buf(vm::_ptr<const char>(buf.addr()), vm::_ptr<const char>(buf.addr()) + len);
std::string _buf;
if (idm::check<lv2_socket>(s))
{
_buf.assign(vm::_ptr<const char>(buf.addr()), vm::_ptr<const char>(buf.addr()) + len);
}
else
{
return -SYS_NET_EBADF;
}
if (addr)
{