From 40db205f5db1795701cc1d9c01bfbc04d4ec43e1 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 26 Oct 2019 08:27:35 +0300 Subject: [PATCH] Fix cellVoiceCreatePort --- rpcs3/Emu/Cell/Modules/cellVoice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVoice.cpp b/rpcs3/Emu/Cell/Modules/cellVoice.cpp index 7794a9cce3..40a9bee996 100644 --- a/rpcs3/Emu/Cell/Modules/cellVoice.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVoice.cpp @@ -178,10 +178,11 @@ error_code cellVoiceCreatePort(vm::ptr portId, vm::cptr { 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((ctr2 << 8) | manager->id_ctr)); } port->second.info = *pArg; + *portId = port->first; return CELL_OK; }