Fix cellVoiceCreatePort

This commit is contained in:
Eladash 2019-10-26 08:27:35 +03:00 committed by Ani
parent 1233c48d92
commit 40db205f5d

View File

@ -178,10 +178,11 @@ error_code cellVoiceCreatePort(vm::ptr<u32> portId, vm::cptr<CellVoicePortParam>
{
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;
*portId = port->first;
return CELL_OK;
}