summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ssl
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-16 17:42:33 +0100
committerGitHub <noreply@github.com>2023-12-16 17:42:33 +0100
commit85b1e17df68adae7fe35e3ed190866e434d5113f (patch)
treedac0669e87b950eae7799b24a3530af45ad55b4d /src/core/hle/service/ssl
parentMerge pull request #12354 from liamwhite/mackage-panager (diff)
downloadyuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.tar
yuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.tar.gz
yuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.tar.bz2
yuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.tar.lz
yuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.tar.xz
yuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.tar.zst
yuzu-85b1e17df68adae7fe35e3ed190866e434d5113f.zip
Diffstat (limited to 'src/core/hle/service/ssl')
-rw-r--r--src/core/hle/service/ssl/ssl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp
index 6c8427b0d..0fbb43057 100644
--- a/src/core/hle/service/ssl/ssl.cpp
+++ b/src/core/hle/service/ssl/ssl.cpp
@@ -240,7 +240,7 @@ private:
return ret;
}
- Result ReadImpl(std::vector<u8>* out_data, size_t size) {
+ Result ReadImpl(std::vector<u8>* out_data) {
ASSERT_OR_EXECUTE(did_handshake, { return ResultInternalError; });
size_t actual_size{};
Result res = backend->Read(&actual_size, *out_data);
@@ -326,8 +326,8 @@ private:
}
void Read(HLERequestContext& ctx) {
- std::vector<u8> output_bytes;
- const Result res = ReadImpl(&output_bytes, ctx.GetWriteBufferSize());
+ std::vector<u8> output_bytes(ctx.GetWriteBufferSize());
+ const Result res = ReadImpl(&output_bytes);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(res);
if (res == ResultSuccess) {