fixed possible 'DoS' bug

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7118 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-08-28 18:38:41 +00:00
parent 0004ab4be4
commit 9afe7b36ef
1 changed files with 3 additions and 3 deletions

View File

@ -158,9 +158,9 @@ static void clear_screen()
A printf before the memset call also seems to work, but this made more sense A printf before the memset call also seems to work, but this made more sense
since it actually checks the status of the card. since it actually checks the status of the card.
*/ */
do { /* first wait for the card to be ready, do not try to write every time - alex */
memset(vidpage, 0, screenwidth * screenheight * screendepth); do {} while((reg_IO->status & 0x1f) < 1);
} while((reg_IO->status & 0x1f) < 1); memset(vidpage, 0, screenwidth * screenheight * screendepth);
if(vo_doublebuffering) { if(vo_doublebuffering) {
memset(hidpage, 0, screenwidth * screenheight * screendepth); memset(hidpage, 0, screenwidth * screenheight * screendepth);