diff options
| author | James Rowe <jroweboy@gmail.com> | 2017-08-22 08:09:09 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-22 08:09:09 -0600 |
| commit | a8675f42875d7ad41ef64b89ec478834042355dd (patch) | |
| tree | 8e2c67c072ad8d874d1b5685a8d084719acb90af /src/core/hle/applets/mint.cpp | |
| parent | 03c782e378cdcd206267656d69dbc98cf8c6274e (diff) | |
| parent | 8a9a4e2c42b6c2326140f7369374bf78a4645a8f (diff) | |
Merge pull request #2888 from Subv/warnings
Fixed some warnings in the core project.
Diffstat (limited to 'src/core/hle/applets/mint.cpp')
| -rw-r--r-- | src/core/hle/applets/mint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/applets/mint.cpp b/src/core/hle/applets/mint.cpp index 31a79ea17..50d79190b 100644 --- a/src/core/hle/applets/mint.cpp +++ b/src/core/hle/applets/mint.cpp @@ -31,8 +31,8 @@ ResultCode Mint::ReceiveParameter(const Service::APT::MessageParameter& paramete 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, "Mint Memory"); + heap_memory, 0, capture_info.size, MemoryPermission::ReadWrite, MemoryPermission::ReadWrite, + "Mint Memory"); // Send the response message with the newly created SharedMemory Service::APT::MessageParameter result; |
