Skip to content

Commit

Permalink
fixed: milkdrop would crash and burn in debug compiles
Browse files Browse the repository at this point in the history
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28614 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
elupus committed Mar 17, 2010
1 parent 1d77cf5 commit 6ad3267
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ad3267

Please sign in to comment.