mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Check more special cases for absolute path on Win32.
This commit is contained in:
parent
c9c1404d70
commit
2961c26e08
@ -451,7 +451,8 @@ const char *path_basename(const char *path)
|
||||
bool path_is_absolute(const char *path)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return path[0] == '/' || strstr(path, ":/") || strstr(path, ":\\");
|
||||
// Many roads lead to Rome ...
|
||||
return path[0] == '/' || (strstr(path, "\\\\") == path) || strstr(path, ":/") || strstr(path, ":\\") || strstr(path, ":\\\\");
|
||||
#else
|
||||
return path[0] == '/';
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user