From 6ad3267fd9c94e133bc28de90aa822bb353f0363 Mon Sep 17 00:00:00 2001 From: elupus Date: Wed, 17 Mar 2010 01:00:18 +0000 Subject: [PATCH] fixed: milkdrop would crash and burn in debug compiles git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28614 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c b/xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c index 09fdd60..22eb552 100644 --- a/xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c +++ b/xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c @@ -141,7 +141,9 @@ functionType fnTable[27] = {{ "sin", _asm_sin, 1 }, //--------------------------------------------------------------------------------------------------------------- void *realAddress(void *fn) { -#ifdef _DEBUG +#if defined(_DEBUG) && 0 + // if this ever is needed, it should check that, the the data + // is of the expected jump format before assuming it is so // Debug Mode char *ptr = (char *)fn; ptr += (*(int *)((ptr+1))+5); -- 2.7.4