Pkunk insult lockup fix

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@206 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-11-12 13:23:57 +00:00
parent c6e574c7ec
commit 52357025e6
+3 -2
View File
@@ -166,8 +166,9 @@ _GetSoundBankData (FILE *fp, DWORD length)
fprintf (stderr, "_GetSoundBankData: Bad file!\n"); fprintf (stderr, "_GetSoundBankData: Bad file!\n");
} }
if (ftell (fp) - opos >= length) // pkunk insult fix 2002/11/12 (ftell shouldn't be needed for loop to terminate)
break; /*if (ftell (fp) - opos >= length)
break;*/
} }
#ifdef WIN32 #ifdef WIN32
_setmode (fileno (fp), omode); _setmode (fileno (fp), omode);