From defedb351ec9fc96cebc926f565cd088fdca320c Mon Sep 17 00:00:00 2001 From: lethosor Date: Wed, 26 Oct 2016 09:34:14 -0400 Subject: [PATCH] Fix raw_vcall crash on Linux/OS X x64 --- plugins/ruby/ruby.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ruby/ruby.cpp b/plugins/ruby/ruby.cpp index bb3b7fe30..6d3f5d8e4 100644 --- a/plugins/ruby/ruby.cpp +++ b/plugins/ruby/ruby.cpp @@ -1086,7 +1086,8 @@ __declspec(naked) static int raw_vcall(void *that, void *fptr, unsigned long a0, static int raw_vcall(void *that, void *fptr, unsigned long a0, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5) { - int (*t_fptr)(void *me, int, int, int, int, int, int); + int (*t_fptr)(void *me, unsigned long, unsigned long, unsigned long, + unsigned long, unsigned long, unsigned long); t_fptr = (decltype(t_fptr))fptr; return t_fptr(that, a0, a1, a2, a3, a4, a5); }