diff --git a/src/injection/AssemblyInjector.cs b/src/injection/AssemblyInjector.cs index edf5085..33de053 100644 --- a/src/injection/AssemblyInjector.cs +++ b/src/injection/AssemblyInjector.cs @@ -254,6 +254,7 @@ async Task InjectModuleAsync(string modulePath, nuint parameterArea, MemoryMappe asm.push(__dword_ptr[esp + 4]); asm.call(eax); + asm.add(esp, 4); asm.jmp(done); asm.Label(ref failure); diff --git a/src/module/main.h b/src/module/main.h index ea13311..e428d7b 100644 --- a/src/module/main.h +++ b/src/module/main.h @@ -11,4 +11,4 @@ typedef struct uint32_t main_thread_id; } ruptura_parameters; -__declspec(dllexport) uint32_t __stdcall ruptura_main(ruptura_parameters *nonnull parameters); +__declspec(dllexport) uint32_t ruptura_main(ruptura_parameters *nonnull parameters);