Skip to content

ZHL trampolines should respect SEH #845

@Sylmir

Description

@Sylmir

naked functions do not contain the necessary prologue and epilogue to handle exceptions properly (precisely because they are naked). As a result, it appears all our naked functions border on undefined behavior if an exception is raised by the game while there is a trampoline on the stack.

Update the generation of the trampolines to include a forwarding SEH handler that naturally propagates the exception to the next frame.

Metadata

Metadata

Assignees

Labels

ZHLIssues related to ZHLbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions