mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-13 00:26:35 +00:00
<int> -> <s32>
This commit is contained in:
parent
014f08f6b4
commit
934ff7bbde
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ namespace sts::ldr {
|
||||||
}
|
}
|
||||||
|
|
||||||
Result LoaderService::GetProcessModuleInfo(Out<u32> count, OutPointerWithClientSize<ModuleInfo> out, u64 process_id) {
|
Result LoaderService::GetProcessModuleInfo(Out<u32> count, OutPointerWithClientSize<ModuleInfo> out, u64 process_id) {
|
||||||
if (out.num_elements > std::numeric_limits<int>::max()) {
|
if (out.num_elements > std::numeric_limits<s32>::max()) {
|
||||||
return ResultLoaderInvalidSize;
|
return ResultLoaderInvalidSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -520,7 +520,7 @@ namespace sts::ldr {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate size. */
|
/* Validate size. */
|
||||||
if (file_size > segment->size || file_size > std::numeric_limits<int>::max() || segment->size > std::numeric_limits<int>::max()) {
|
if (file_size > segment->size || file_size > std::numeric_limits<s32>::max() || segment->size > std::numeric_limits<s32>::max()) {
|
||||||
return ResultLoaderInvalidNso;
|
return ResultLoaderInvalidNso;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue