0

I'm reverse engineering an old DOS game that's using the DOS/4GW extender. The game includes some libraries that I already successfully reversed in a different application, so I'm pretty sure that the declaration for the function that is making trouble is correct. Nonetheless, the function in question shows the error message // local variable allocation has failed, the output may be wrong!. When looking at the assembly, it seems like there's a problem with the stack definition, as can be seen here:

enter image description here

I already tried to edit the function and make some adaptions (unfortunately I'm lacking a little bit of experience there), but to no avail. Here's a screenshot of the declarations/stack frame and the function's initial options without changes:

enter image description here

What could be the cause for the failed allocation and how can one fix it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.