mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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)
|
bool path_is_absolute(const char *path)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#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
|
#else
|
||||||
return path[0] == '/';
|
return path[0] == '/';
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user