Skip to content
Snippets Groups Projects
Commit c55b5de0 authored by David Marcec's avatar David Marcec
Browse files

Made the minimum alignment more clear

parent c7763603
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,9 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) { ...@@ -85,8 +85,9 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) {
return static_cast<u32>(NvErrCodes::InvalidValue); return static_cast<u32>(NvErrCodes::InvalidValue);
} }
if (params.align < 0x1000) { const u32 min_alignment = 0x1000;
params.align = 0x1000; if (params.align < min_alignment) {
params.align = min_alignment;
} }
auto object = GetObject(params.handle); auto object = GetObject(params.handle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment