File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Module Internals/GameMaker/Generic Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1390,7 +1390,7 @@ namespace YYTK
1390
1390
}
1391
1391
1392
1392
// Loop all builtin entries
1393
- for (size_t i = 0 ; i < *m_BuiltinCount; i++)
1393
+ for (int i = 0 ; i < *m_BuiltinCount; i++)
1394
1394
{
1395
1395
// If we have a match with the name, we cache the index and return
1396
1396
if (!strcmp (Name.data (), m_BuiltinArray[i].m_Name ))
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ namespace YYTK
254
254
auto instructions_in_the_current_page = GmpDisassemble (
255
255
page_base,
256
256
PAGE_SIZE,
257
- UINT64_MAX
257
+ SIZE_MAX
258
258
);
259
259
260
260
std::vector<std::pair<size_t , ZydisDisassembledInstruction>> lea_mov_pairs = {};
@@ -344,7 +344,7 @@ namespace YYTK
344
344
if (mov_instruction.operands [0 ].mem .base != ZYDIS_REGISTER_RBP && mov_instruction.operands [0 ].mem .base != ZYDIS_REGISTER_RSP)
345
345
continue ;
346
346
347
- valid_lea_mov_pairs_addresses.push_back (pair.second .runtime_address );
347
+ valid_lea_mov_pairs_addresses.push_back (static_cast < size_t >( pair.second .runtime_address ) );
348
348
}
349
349
350
350
// Filter valid_lea_mov_pairs_addresses by checking the length of function chains.
@@ -397,5 +397,7 @@ namespace YYTK
397
397
398
398
return AURIE_SUCCESS;
399
399
}
400
+
401
+ return AURIE_OBJECT_NOT_FOUND;
400
402
}
401
403
}
You can’t perform that action at this time.
0 commit comments