mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
msvc throws debug assert with fopen on a null string
This commit is contained in:
parent
9e41efbd24
commit
1204715525
@ -363,6 +363,9 @@ bool path_is_compressed_file(const char* path)
|
||||
*/
|
||||
bool path_file_exists(const char *path)
|
||||
{
|
||||
if (!path || !*path)
|
||||
return false;
|
||||
|
||||
FILE *dummy = fopen(path, "rb");
|
||||
|
||||
if (!dummy)
|
||||
|
Loading…
x
Reference in New Issue
Block a user