node/lib/metasm/samples/dbg-apihook.rb
def patch_ret(val)
		if @ret_longlong
			@dbg.set_reg_value(:edx, (val >> 32) & 0xffffffff)
			val &= 0xffffffff
		end
		@dbg.func_retval_set(val)
	end
# patch the function return value
# only valid post_hook
patch the function return value
only valid post_hook
patch the function return value only valid post_hook
def patch_ret(val)
		if @ret_longlong
			@dbg.set_reg_value(:edx, (val >> 32) & 0xffffffff)
			val &= 0xffffffff
		end
		@dbg.func_retval_set(val)
	end
def patch_ret ( val ) if @ret_longlong @dbg . set_reg_value ( :edx , ( val >> 32 ) & 0xffffffff ) val &= 0xffffffff end @dbg . func_retval_set ( val ) end
patch the function return value
only valid post_hook
patch the function return value only valid post_hook
val