sourcehook/sourcehook.cpp
changeset 34 11e62a912700
parent 10 406d8e5ddfc4
child 41 534eac4c53ef
     1.1 --- a/sourcehook/sourcehook.cpp	Fri Apr 22 14:28:52 2005 +0000
     1.2 +++ b/sourcehook/sourcehook.cpp	Fri Apr 22 14:29:25 2005 +0000
     1.3 @@ -20,7 +20,7 @@
     1.4  # include <windows.h>
     1.5  #elif SH_SYS == SH_SYS_LINUX
     1.6  # include <sys/mman.h>
     1.7 -# include <sys/limits.h>
     1.8 +# include <limits.h>
     1.9  # include <unistd.h>
    1.10  # ifndef PAGESIZE
    1.11  #  define PAGESIZE 4096
    1.12 @@ -459,7 +459,7 @@
    1.13  			void *callgate = NULL;
    1.14  #if SH_RUNTIME_CODEGEN == 1
    1.15  			unsigned char *cggen = new unsigned char[SH_CCC_CODESIZE];
    1.16 -			SH_CCC_MakeGate(cc.iface, cc.ptr, cggen, orig_entry);
    1.17 +			//SH_CCC_MakeGate(cc.iface, cc.ptr, cggen, orig_entry);
    1.18  			callgate = (void*)cggen;
    1.19  			SetMemAccess(callgate, SH_CCC_CODESIZE, SH_MEM_READ | SH_MEM_WRITE | SH_MEM_EXEC);
    1.20  #else
    1.21 @@ -581,4 +581,4 @@
    1.22  	{
    1.23  		return m_IfacePtr;
    1.24  	}
    1.25 -}
    1.26 \ No newline at end of file
    1.27 +}