From 455ae3338e609599ba5fed2159c13a9c56ab0b3e Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Sun, 6 May 2001 00:17:47 +0000 Subject: [PATCH] Fixed windows command line crash (thanks MKendora) --- zsnes/src/ui.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsnes/src/ui.asm b/zsnes/src/ui.asm index 75f937f4..5ca54aa2 100644 --- a/zsnes/src/ui.asm +++ b/zsnes/src/ui.asm @@ -40,6 +40,8 @@ EXTSYM LinuxExit EXTSYM GetFilename %endif +EXTSYM OSExit + NEWSYM UIAsmStart %include "betauser.mac" @@ -1516,6 +1518,9 @@ NEWSYM DosExit ; Terminate Program %ifdef __LINUX__ call LinuxExit %else +%ifdef __WIN32__ + call OSExit + %else jmp .nodeallocate mov ebx,memfreearray @@ -1535,4 +1540,5 @@ NEWSYM DosExit ; Terminate Program mov ax,4c00h ;terminate int 21h %endif +%endif NEWSYM UIAsmEnd