mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Fix cellVoiceCreatePort
This commit is contained in:
parent
1233c48d92
commit
40db205f5d
@ -178,10 +178,11 @@ error_code cellVoiceCreatePort(vm::ptr<u32> portId, vm::cptr<CellVoicePortParam>
|
|||||||
{
|
{
|
||||||
verify(HERE), ctr2 < CELLVOICE_MAX_PORT + 1;
|
verify(HERE), ctr2 < CELLVOICE_MAX_PORT + 1;
|
||||||
|
|
||||||
std::tie(port, success) = manager->ports.try_emplace((ctr2 << 8) | manager->id_ctr);
|
std::tie(port, success) = manager->ports.try_emplace(::narrow<u16>((ctr2 << 8) | manager->id_ctr));
|
||||||
}
|
}
|
||||||
|
|
||||||
port->second.info = *pArg;
|
port->second.info = *pArg;
|
||||||
|
*portId = port->first;
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user