From f03df821ed4afdb158253dee58ce00dd5c472d28 Mon Sep 17 00:00:00 2001 From: rainwarrior Date: Mon, 28 Aug 2017 02:24:15 +0000 Subject: [PATCH] NTSC filter null pointer crash fix from: https://sourceforge.net/p/fceultra/bugs/804/ --- trunk/src/drivers/common/vidblit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/drivers/common/vidblit.cpp b/trunk/src/drivers/common/vidblit.cpp index 79f035e8..fc881f53 100644 --- a/trunk/src/drivers/common/vidblit.cpp +++ b/trunk/src/drivers/common/vidblit.cpp @@ -715,7 +715,7 @@ void Blit8ToHigh(uint8 *src, uint8 *dest, int xr, int yr, int pitch, int xscale, newindex = (*src&63) | (deemph*64); newindex += 256; - if(GameInfo->type==GIT_NSF) + if(GameInfo && GameInfo->type==GIT_NSF) { *d++ = palettetranslate[temp]; *d++ = palettetranslate[temp]; @@ -807,7 +807,7 @@ void Blit8ToHigh(uint8 *src, uint8 *dest, int xr, int yr, int pitch, int xscale, switch(Bpp) { case 4: - if ( nes_ntsc && GameInfo->type!=GIT_NSF) { + if ( nes_ntsc && GameInfo && GameInfo->type!=GIT_NSF) { int outxr = 301; //if(xr == 282) outxr = 282; //hack for windows burst_phase ^= 1;