Fix windows compilation

This commit is contained in:
vit9696 2018-10-10 17:25:31 +03:00
parent 49e8e02b77
commit 126b36a672

View File

@ -36,10 +36,10 @@ static inline bool changeDirectory(const UString & dir) {
return (_chdir(dir.toLocal8Bit()) == 0); return (_chdir(dir.toLocal8Bit()) == 0);
} }
static inline UString getAbsPath(const UString * path) { static inline UString getAbsPath(const UString & path) {
char abs[1024] = {}; char abs[1024] = {};
if (_fullpath(abs, path.toLocal8Bit(), sizeof(abs))) if (_fullpath(abs, path.toLocal8Bit(), sizeof(abs)))
UString(abs); return UString(abs);
return path; return path;
} }
#else #else