mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Fixed overlay thread joining on himself
This commit is contained in:
parent
aeeb85da55
commit
5af1d18a8f
2 changed files with 45 additions and 64 deletions
|
|
@ -208,7 +208,7 @@ int find_space_for_trampoline(uint8_t* func, int bytes_needed)
|
|||
if( func == nullptr )
|
||||
return -1;
|
||||
|
||||
int code_len = -1;
|
||||
int code_len = 0;
|
||||
bool search = true;
|
||||
uint8_t *startCode = reinterpret_cast<uint8_t*>(func);
|
||||
uint8_t *pCode = startCode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue