mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
buffer: Align the size based on the param.
This commit is contained in:
parent
cd85610ebb
commit
3a750138c5
@ -47,7 +47,7 @@ static Result _nvBufferCreate(
|
|||||||
{
|
{
|
||||||
Result rc;
|
Result rc;
|
||||||
|
|
||||||
size = (size + 0xFFF) &~ 0xFFF;
|
size = (size + align - 1) & ~(align - 1);
|
||||||
|
|
||||||
m->has_init = true;
|
m->has_init = true;
|
||||||
m->size = size;
|
m->size = size;
|
||||||
|
Loading…
Reference in New Issue
Block a user