add addiotional null check
This commit is contained in:
parent
38b553191f
commit
91cad99b6f
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ BOOL util_detect_low_res_screen()
|
|||
}
|
||||
else if (g_ddraw.isworms2)
|
||||
{
|
||||
if ((*pW2DS)->RenderWidth && (*pW2DS)->RenderWidth < g_ddraw.width && (*pW2DS)->RenderHeight < g_ddraw.height)
|
||||
if (*pW2DS && (*pW2DS)->RenderWidth && (*pW2DS)->RenderWidth < g_ddraw.width && (*pW2DS)->RenderHeight < g_ddraw.height)
|
||||
{
|
||||
if (g_ddraw.upscale_hack_width != (*pW2DS)->RenderWidth || g_ddraw.upscale_hack_height != (*pW2DS)->RenderHeight)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue