From c6ead6e97354aba028ed9fcf89abb4db7efe1c08 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 May 2017 02:16:25 +0200 Subject: [PATCH] Make this code more robust --- dynamic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamic.c b/dynamic.c index 739064d11d..a48cb7dab3 100644 --- a/dynamic.c +++ b/dynamic.c @@ -858,7 +858,7 @@ static bool dynamic_verify_hw_context(enum retro_hw_context_type type, switch (type) { case RETRO_HW_CONTEXT_VULKAN: - if (string_is_not_equal_fast(video_ident, "vulkan", 6)) + if (!string_is_equal(video_ident, "vulkan")) return false; break; case RETRO_HW_CONTEXT_OPENGLES2: @@ -866,7 +866,7 @@ static bool dynamic_verify_hw_context(enum retro_hw_context_type type, case RETRO_HW_CONTEXT_OPENGLES_VERSION: case RETRO_HW_CONTEXT_OPENGL: case RETRO_HW_CONTEXT_OPENGL_CORE: - if (string_is_not_equal_fast(video_ident, "gl", 2)) + if (!string_is_equal(video_ident, "gl")) return false; break; default: