summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2021-05-13 09:00:46 -0400
committerGravatar Morph2021-05-16 00:20:48 -0400
commitfaaea00069ee7b4c124d776889aad09aa1d9a463 (patch)
treecc5f6fc6b7f9e6149e3faaf488839bb7aefa088d /src
parentMerge pull request #6244 from german77/sdlmotion (diff)
downloadyuzu-faaea00069ee7b4c124d776889aad09aa1d9a463.tar.gz
yuzu-faaea00069ee7b4c124d776889aad09aa1d9a463.tar.xz
yuzu-faaea00069ee7b4c124d776889aad09aa1d9a463.zip
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 }