following fix for the crash that
occurs in ZSNES 1.42 (DOS) when
starting a ROM from the command
line while a VESA2 mode is
selected in zsnes.cfg. I have
tested it and it seems to work.

The fix calls initvideo before
ClearScreen to prevent the GPF
that would happen if the null
selector in [VESA2Selec] is used
to access the linear framebuffer
in cscopyvesa2320x480x16b and
similar routines.
--- old\init.asm 2006-04-12 13:58:52.000000000 +0000
+++ new\init.asm 2006-04-12 13:48:36.000000000 +0000
@@ -111,6 +111,7 @@
EXTSYM ScrDispl,wramreadptr,wramwriteptr
EXTSYM pl1Ltk,pl1Rtk,pl2Ltk,pl2Rtk,pl3Ltk,pl3Rtk,pl4Ltk,pl4Rtk,pl5Ltk,pl5Rtk
EXTSYM loadstate2, headerhack
+EXTSYM initvideo
;initc.c
EXTSYM chip_detect
@@ -3168,6 +3169,7 @@
NEWSYM SetupROM
call CheckROMType
call SetIRQVectors
+ call initvideo
call ClearScreen
cmp byte[cbitmode],0
jne .nomakepal