mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +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;
|
||||
|
||||
size = (size + 0xFFF) &~ 0xFFF;
|
||||
size = (size + align - 1) & ~(align - 1);
|
||||
|
||||
m->has_init = true;
|
||||
m->size = size;
|
||||
|
Loading…
Reference in New Issue
Block a user