mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fix windows compilation
This commit is contained in:
parent
49e8e02b77
commit
126b36a672
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user