diff options
author | Lioncash <mathew1800@gmail.com> | 2022-11-23 19:25:14 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-11-23 19:43:20 +0100 |
commit | 97f273e94e83a679f42faa9c81916a1c058112e1 (patch) | |
tree | e2a2777ae3bec31b544516988fae36e8080150ff /src/core/hle/service/bcat | |
parent | hle_ipc: Add helper functions for getting number of buffer elements (diff) | |
download | yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.gz yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.bz2 yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.lz yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.xz yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.tar.zst yuzu-97f273e94e83a679f42faa9c81916a1c058112e1.zip |
Diffstat (limited to 'src/core/hle/service/bcat')
-rw-r--r-- | src/core/hle/service/bcat/bcat_module.cpp | 4 |
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); |