1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

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

@ -371,7 +371,7 @@ error_code _sys_lwcond_queue_wait(ppu_thread& ppu, u32 lwcond_id, u32 lwmutex_id
break;
}
std::lock_guard lock2(mutex->mutex);
std::shared_lock lock2(mutex->mutex);
if (std::find(mutex->sq.cbegin(), mutex->sq.cend(), &ppu) == mutex->sq.cend())
{

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)
{

View File

@ -186,7 +186,7 @@ error_code sys_rsx_context_allocate(vm::ptr<u32> context_id, vm::ptr<u64> lpar_d
dmaControl.put = 0;
dmaControl.ref = 0; // Set later to -1 by cellGcmSys
if ((true/*system_mode & something*/ || g_cfg.video.decr_memory_layout)
if ((false/*system_mode & something*/ || g_cfg.video.decr_memory_layout)
&& g_cfg.core.debug_console_mode)
rsx::get_current_renderer()->main_mem_size = 0x20000000; //512MB
else