aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/applets/swkbd.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-08-19 11:37:21 -0500
committerSubv <subv2112@gmail.com>2017-08-21 08:34:27 -0500
commitecfad8a13476a1c76d82af2ddcbc37185becd495 (patch)
treed6a1c4112e303ff8ccd83fcc5268f5114b5427d4 /src/core/hle/applets/swkbd.cpp
parent690eed4d9e49f816b8692a6b1cd71a0f1ac41217 (diff)
HLE/Applets: Fixed some conversion warnings when creating the framebuffer shared memory objects.
Diffstat (limited to 'src/core/hle/applets/swkbd.cpp')
-rw-r--r--src/core/hle/applets/swkbd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/applets/swkbd.cpp b/src/core/hle/applets/swkbd.cpp
index fdf8807b03..0bc471a3a8 100644
--- a/src/core/hle/applets/swkbd.cpp
+++ b/src/core/hle/applets/swkbd.cpp
@@ -41,8 +41,8 @@ ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter con
heap_memory = std::make_shared<std::vector<u8>>(capture_info.size);
// Create a SharedMemory that directly points to this heap block.
framebuffer_memory = Kernel::SharedMemory::CreateForApplet(
- heap_memory, 0, heap_memory->size(), MemoryPermission::ReadWrite,
- MemoryPermission::ReadWrite, "SoftwareKeyboard Memory");
+ heap_memory, 0, capture_info.size, MemoryPermission::ReadWrite, MemoryPermission::ReadWrite,
+ "SoftwareKeyboard Memory");
// Send the response message with the newly created SharedMemory
Service::APT::MessageParameter result;