video_shader_driver_resolve_parameters - fix crash at startup with

MSVC
This commit is contained in:
twinaphex 2017-10-22 05:21:31 +02:00
parent bb051f185b
commit d203e4dc9c

View File

@ -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)
{