fixed: milkdrop would crash and burn in debug compiles
authorelupus <elupus@svn>
Wed, 17 Mar 2010 01:00:18 +0000 (01:00 +0000)
committerelupus <elupus@svn>
Wed, 17 Mar 2010 01:00:18 +0000 (01:00 +0000)
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

index 09fdd60..22eb552 100644 (file)
@@ -141,7 +141,9 @@ functionType fnTable[27] = {{ "sin",   _asm_sin,   1 },
 //---------------------------------------------------------------------------------------------------------------\r
 void *realAddress(void *fn)\r
 {\r
-#ifdef _DEBUG\r
+#if defined(_DEBUG) && 0\r
+  // if this ever is needed, it should check that, the the data\r
+  // is of the expected jump format before assuming it is so\r
        // Debug Mode\r
        char *ptr = (char *)fn;\r
        ptr += (*(int *)((ptr+1))+5);\r