From d203e4dc9c0ed55ec46ad6a2539aee224eba0b39 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 22 Oct 2017 05:21:31 +0200 Subject: [PATCH] video_shader_driver_resolve_parameters - fix crash at startup with MSVC --- gfx/video_shader_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index ca0929f005..2ef331af88 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -538,7 +538,8 @@ bool video_shader_resolve_parameters(config_file_t *conf, /* If that doesn't work, fallback to the old path. * Ideally, we'd get rid of this path sooner or later. */ #endif - file = filestream_open(path, RFILE_MODE_READ_TEXT, -1); + if (!string_is_empty(path)) + file = filestream_open(path, RFILE_MODE_READ_TEXT, -1); if (!file) {