Skip to content
2 changes: 1 addition & 1 deletion core/platform/FileUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ bool FileUtils::isAbsolutePathInternal(std::string_view path)
|| (raw[0] == '/' || raw[0] == '\\') // Current disk drive
);
#else
return (raw[0] == '/');
return (path.length() > 0 && raw[0] == '/');
#endif
}

Expand Down
Loading