From 126b36a6721e3e12d3ca04f0d8d058e1cfdddf4c Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 10 Oct 2018 17:25:31 +0300 Subject: [PATCH] Fix windows compilation --- common/filesystem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/filesystem.h b/common/filesystem.h index a307aa1..00c1743 100644 --- a/common/filesystem.h +++ b/common/filesystem.h @@ -36,10 +36,10 @@ static inline bool changeDirectory(const UString & dir) { return (_chdir(dir.toLocal8Bit()) == 0); } -static inline UString getAbsPath(const UString * path) { +static inline UString getAbsPath(const UString & path) { char abs[1024] = {}; if (_fullpath(abs, path.toLocal8Bit(), sizeof(abs))) - UString(abs); + return UString(abs); return path; } #else