aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc/nfc_user.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-25 00:38:17 -0800
committerGitHub <noreply@github.com>2022-11-25 00:38:17 -0800
commit64965cc658a6266ddb9878ffd53bd69e0a0f5b79 (patch)
tree495b63ec25d2b5e8d5888004e5bca0dcdf67704b /src/core/hle/service/nfc/nfc_user.cpp
parent20b62dbd30e597c6d3700a22fbde5bd10169dfb2 (diff)
parent97f273e94e83a679f42faa9c81916a1c058112e1 (diff)
Merge pull request #9305 from lioncash/request
hle_ipc: Add helper function for determining element counts
Diffstat (limited to 'src/core/hle/service/nfc/nfc_user.cpp')
-rw-r--r--src/core/hle/service/nfc/nfc_user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nfc/nfc_user.cpp b/src/core/hle/service/nfc/nfc_user.cpp
index 0753333bf..ced2d560b 100644
--- a/src/core/hle/service/nfc/nfc_user.cpp
+++ b/src/core/hle/service/nfc/nfc_user.cpp
@@ -118,7 +118,7 @@ void IUser::ListDevices(Kernel::HLERequestContext& ctx) {
}
std::vector<u64> nfp_devices;
- const std::size_t max_allowed_devices = ctx.GetWriteBufferSize() / sizeof(u64);
+ const std::size_t max_allowed_devices = ctx.GetWriteBufferNumElements<u64>();
for (auto& device : devices) {
if (nfp_devices.size() >= max_allowed_devices) {