From 50711074f2f86fae702977c8b2d94e21765a76bf Mon Sep 17 00:00:00 2001 From: zsknight <> Date: Sat, 19 May 2001 00:53:06 +0000 Subject: [PATCH] Fixed crash bug when selecting a quick menu selection other than the first one while the load window is opened. --- zsnes/src/gui/guiload.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsnes/src/gui/guiload.inc b/zsnes/src/gui/guiload.inc index 54627748..0cf3c3da 100644 --- a/zsnes/src/gui/guiload.inc +++ b/zsnes/src/gui/guiload.inc @@ -1028,7 +1028,7 @@ GetLoadHeader: jnz .loop3 ret -.invfile db 255,'** INVALID FILE **',0 +.invfile db ' ** INVALID FILE **',0 fnameheadtemp times 22 db 0 GetNormalDirEntries2: @@ -1441,6 +1441,7 @@ NEWSYM DTALoc, times 2048+32 db 0 ; Routines to load from the Quick Menu loadquickfname: + pushad .trynext cmp byte[GUIwinptr],0 je near .noclose @@ -1459,6 +1460,7 @@ loadquickfname: mov [GUIcmenupos],al jmp .trynext .noclose + popad ; move menuitem to top cmp ecx,0