mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
video_context_driver_get_ident(&gfxctx);
|
||||
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 false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user