Skip to content

Mid or inline hook results in Allocator::global error #106

@k4sh44

Description

@k4sh44

I try to hook the following assembly code in a UE 5 game :
movss[rdi + 30], xmm0
I did a simple hook like this :

FOVHook = safetyhook::create_mid(FOVaddress,
       [](SafetyHookContext& ctx) {
       // Do nothing
       });

It results in error in UE5 log file :
[2025.07.26-15.49.38:762][467]LogWindows: Error: [Callstack] 0x00007ff8f9de17c8 WuchangFFCore.dll!safetyhook::Allocator::global() [C:\safetyhook\src\allocator.cpp:53]

Is there a workaround or is it a bug ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions