Skip to content

Commit 6ad3267

Browse files
author
elupus
committed
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
1 parent 1d77cf5 commit 6ad3267

File tree

1 file changed

+3
-1
lines changed
  • xbmc/visualizations/Milkdrop/vis_milkdrop/evallib

1 file changed

+3
-1
lines changed

xbmc/visualizations/Milkdrop/vis_milkdrop/evallib/Compiler.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ functionType fnTable[27] = {{ "sin", _asm_sin, 1 },
141141
//---------------------------------------------------------------------------------------------------------------
142142
void *realAddress(void *fn)
143143
{
144-
#ifdef _DEBUG
144+
#if defined(_DEBUG) && 0
145+
// if this ever is needed, it should check that, the the data
146+
// is of the expected jump format before assuming it is so
145147
// Debug Mode
146148
char *ptr = (char *)fn;
147149
ptr += (*(int *)((ptr+1))+5);

0 commit comments

Comments
 (0)