git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@89 d34b734f-a00e-4b39-a726-e4eeb87269abadeniz_1
#ifdef _WIN32 | #ifdef _WIN32 | ||||
#include <windows.h> | #include <windows.h> | ||||
#include <Shlwapi.h> | |||||
#else | #else | ||||
bool FilePath::isAbsolute(std::string const &path) { | bool FilePath::isAbsolute(std::string const &path) { | ||||
#ifdef _WIN32 | #ifdef _WIN32 | ||||
return PathIsRelative(path.c_str()); | |||||
return !PathIsRelative(path.c_str()); | |||||
#else | #else | ||||
if (path.empty()) { | if (path.empty()) { | ||||
return false; | return false; |