mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Fix NULL related crash on CRT Switchres code
gfxctx.ident returns NULL on Windows but there's no check for this
This commit is contained in:
parent
63101fd886
commit
22de73da3b
@ -144,7 +144,7 @@ static bool is_kms_driver_context()
|
|||||||
gfx_ctx_ident_t gfxctx;
|
gfx_ctx_ident_t gfxctx;
|
||||||
video_context_driver_get_ident(&gfxctx);
|
video_context_driver_get_ident(&gfxctx);
|
||||||
RARCH_LOG("[CRT] Video context is: %s\n", gfxctx.ident);
|
RARCH_LOG("[CRT] Video context is: %s\n", gfxctx.ident);
|
||||||
if (strncmp(gfxctx.ident, "kms",3) == 0)
|
if (gfxctx.ident !=NULL && strncmp(gfxctx.ident, "kms",3) == 0)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user