summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-05-16 01:32:04 -0700
committerGravatar GitHub2021-05-16 01:32:04 -0700
commite8d2de1f99a73d6e92ab91d448e47e087833f7f7 (patch)
tree6d809fab1eeda0abceb746d691517e00f2ac54c2 /src
parentMerge pull request #6293 from v1993/master (diff)
parentnifm, ssl: Fix incorrect response sizes (diff)
downloadyuzu-e8d2de1f99a73d6e92ab91d448e47e087833f7f7.tar.gz
yuzu-e8d2de1f99a73d6e92ab91d448e47e087833f7f7.tar.xz
yuzu-e8d2de1f99a73d6e92ab91d448e47e087833f7f7.zip
Merge pull request #6307 from Morph1984/fix-response-push-size
nifm, ssl: Fix incorrect response sizes
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nifm/nifm.cpp2
-rw-r--r--src/core/hle/service/ssl/ssl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index 94ef3983a..76e3832df 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -368,7 +368,7 @@ private:
368 }, 368 },
369 }; 369 };
370 370
371 IPC::ResponseBuilder rb{ctx, 2 + sizeof(IpConfigInfo) / sizeof(u32)}; 371 IPC::ResponseBuilder rb{ctx, 2 + (sizeof(IpConfigInfo) + 3) / sizeof(u32)};
372 rb.Push(RESULT_SUCCESS); 372 rb.Push(RESULT_SUCCESS);
373 rb.PushRaw<IpConfigInfo>(ip_config_info); 373 rb.PushRaw<IpConfigInfo>(ip_config_info);
374 } 374 }
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp
index 2c8899ae0..3b072f6bc 100644
--- a/src/core/hle/service/ssl/ssl.cpp
+++ b/src/core/hle/service/ssl/ssl.cpp
@@ -128,7 +128,7 @@ private:
128 128
129 LOG_WARNING(Service_SSL, "(STUBBED) called"); 129 LOG_WARNING(Service_SSL, "(STUBBED) called");
130 130
131 IPC::ResponseBuilder rb{ctx, 2}; 131 IPC::ResponseBuilder rb{ctx, 4};
132 rb.Push(RESULT_SUCCESS); 132 rb.Push(RESULT_SUCCESS);
133 rb.Push(client_id); 133 rb.Push(client_id);
134 } 134 }