summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/bcat/bcat_module.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-25 09:38:17 +0100
committerGitHub <noreply@github.com>2022-11-25 09:38:17 +0100
commit64965cc658a6266ddb9878ffd53bd69e0a0f5b79 (patch)
tree495b63ec25d2b5e8d5888004e5bca0dcdf67704b /src/core/hle/service/bcat/bcat_module.cpp
parentMerge pull request #9194 from FernandoS27/yfc-fermi2d (diff)
parentservice: Make use of buffer element count helpers (diff)
downloadyuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar
yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.gz
yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.bz2
yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.lz
yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.xz
yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.zst
yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/bcat/bcat_module.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/bcat/bcat_module.cpp b/src/core/hle/service/bcat/bcat_module.cpp
index bc08ac487..cbe690a5d 100644
--- a/src/core/hle/service/bcat/bcat_module.cpp
+++ b/src/core/hle/service/bcat/bcat_module.cpp
@@ -443,7 +443,7 @@ private:
}
void Read(Kernel::HLERequestContext& ctx) {
- auto write_size = ctx.GetWriteBufferSize() / sizeof(DeliveryCacheDirectoryEntry);
+ auto write_size = ctx.GetWriteBufferNumElements<DeliveryCacheDirectoryEntry>();
LOG_DEBUG(Service_BCAT, "called, write_size={:016X}", write_size);
@@ -533,7 +533,7 @@ private:
}
void EnumerateDeliveryCacheDirectory(Kernel::HLERequestContext& ctx) {
- auto size = ctx.GetWriteBufferSize() / sizeof(DirectoryName);
+ auto size = ctx.GetWriteBufferNumElements<DirectoryName>();
LOG_DEBUG(Service_BCAT, "called, size={:016X}", size);