Fixed crashing problem when a quick load item is loaded while the load box is opened.

This commit is contained in:
zsknight
2001-05-01 07:42:00 +00:00
parent 0de3d2327c
commit 35ee90cbdd

View File

@@ -1433,6 +1433,25 @@ NEWSYM DTALoc, times 2048+32 db 0
; Routines to load from the Quick Menu
loadquickfname:
.trynext
cmp byte[GUIwinptr],0
je near .noclose
xor eax,eax
mov al,[GUIwinptr]
dec eax
xor ebx,ebx
mov bl,[GUIwinorder+eax]
; close window
mov byte[GUIwinorder+eax],0
mov byte[GUIwinactiv+ebx],0
dec byte[GUIwinptr]
cmp byte[GUIwinptr],0
jne .noclose
mov al,[GUIpmenupos]
mov [GUIcmenupos],al
jmp .trynext
.noclose
; move menuitem to top
cmp ecx,0
je near .nomove