summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-31 10:24:36 -0400
committerGravatar Lioncash2018-07-31 10:24:38 -0400
commit1ced7bbea5461084a41e483e6d94e9e4645e5d9f (patch)
tree54d77ef84dad4a1c29c88be775cc166e0a320633 /src
parentMerge pull request #870 from lioncash/init (diff)
downloadyuzu-1ced7bbea5461084a41e483e6d94e9e4645e5d9f.tar.gz
yuzu-1ced7bbea5461084a41e483e6d94e9e4645e5d9f.tar.xz
yuzu-1ced7bbea5461084a41e483e6d94e9e4645e5d9f.zip
audout_u: Remove std::move in OpenAudioOutImpl()
Previously the code was using the values from params further below after it was std::moved. Thankfully, given AudoutParams is a trivially copyable struct, the values would have simply been copied in this instance and not invalidated to garbage values.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/audio/audout_u.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index ab37c2a69..b317027b6 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -194,7 +194,7 @@ void AudOutU::OpenAudioOutImpl(Kernel::HLERequestContext& ctx) {
194 // TODO(bunnei): Support more than one IAudioOut interface. When we add this, ListAudioOutsImpl 194 // TODO(bunnei): Support more than one IAudioOut interface. When we add this, ListAudioOutsImpl
195 // will likely need to be updated as well. 195 // will likely need to be updated as well.
196 ASSERT_MSG(!audio_out_interface, "Unimplemented"); 196 ASSERT_MSG(!audio_out_interface, "Unimplemented");
197 audio_out_interface = std::make_shared<IAudioOut>(std::move(params), *audio_core); 197 audio_out_interface = std::make_shared<IAudioOut>(params, *audio_core);
198 198
199 IPC::ResponseBuilder rb{ctx, 6, 0, 1}; 199 IPC::ResponseBuilder rb{ctx, 6, 0, 1};
200 rb.Push(RESULT_SUCCESS); 200 rb.Push(RESULT_SUCCESS);