fixed crash while trying to work with an empty playlist.

git-svn-id: svn://kolibrios.org@4620 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-03-08 11:35:53 +00:00
parent 43101a8623
commit fd5287e58e
2 changed files with 108 additions and 104 deletions

View File

@ -7,6 +7,8 @@
;
; COMPILE WITH FASM
format binary as ""
PLAYLIST_PATH equ '/HD0/1/PLAYLIST.TXT'
;APP_MEM equ 150*1024

View File

@ -173,6 +173,8 @@ PL_get1stsel:
PL_getnextsel:
push eax ecx
movzx ecx,[list_count]
test ecx, ecx
jz .ex2
.lp:
movzx eax,word[esi]
btr eax,15