Permalink
Browse files

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
  • Loading branch information...
1 parent 1d77cf5 commit 6ad3267fd9c94e133bc28de90aa822bb353f0363 elupus committed Mar 17, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 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);

0 comments on commit 6ad3267

Please sign in to comment.