summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-20 01:18:38 +0200
committerGitHub <noreply@github.com>2018-07-20 01:18:38 +0200
commitd3cfaf95c883512691df01e90d8ab7e8873c2c3d (patch)
tree0a9ca7761857f6855ed30f8ef2f99674cd7d119c /src/core/hle/service
parentMerge pull request #725 from lioncash/bytes (diff)
parenthle_ipc: Introduce generic WriteBuffer overload for multiple container types (diff)
downloadyuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.tar
yuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.tar.gz
yuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.tar.bz2
yuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.tar.lz
yuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.tar.xz
yuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.tar.zst
yuzu-d3cfaf95c883512691df01e90d8ab7e8873c2c3d.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/audio/audout_u.cpp2
-rw-r--r--src/core/hle/service/audio/audren_u.cpp4
-rw-r--r--src/core/hle/service/set/set.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index 8bf273b22..4217ea4fb 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -168,7 +168,7 @@ void AudOutU::ListAudioOutsImpl(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const std::string audio_interface = "AudioInterface";
- ctx.WriteBuffer(audio_interface.c_str(), audio_interface.size());
+ ctx.WriteBuffer(audio_interface);
IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0);
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp
index 2a8b3e216..6903f52d6 100644
--- a/src/core/hle/service/audio/audren_u.cpp
+++ b/src/core/hle/service/audio/audren_u.cpp
@@ -299,7 +299,7 @@ private:
IPC::RequestParser rp{ctx};
const std::string audio_interface = "AudioInterface";
- ctx.WriteBuffer(audio_interface.c_str(), audio_interface.size());
+ ctx.WriteBuffer(audio_interface);
IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0);
rb.Push(RESULT_SUCCESS);
@@ -324,7 +324,7 @@ private:
IPC::RequestParser rp{ctx};
const std::string audio_interface = "AudioDevice";
- ctx.WriteBuffer(audio_interface.c_str(), audio_interface.size());
+ ctx.WriteBuffer(audio_interface);
IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0);
rb.Push(RESULT_SUCCESS);
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index bd295cdf6..886133b74 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -31,7 +31,7 @@ void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
LanguageCode::ZH_HANS,
LanguageCode::ZH_HANT,
}};
- ctx.WriteBuffer(available_language_codes.data(), available_language_codes.size());
+ ctx.WriteBuffer(available_language_codes);
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);