GH-1997 try to fix Windows build
Coding blind. Much !!FUN!!.
This commit is contained in:
parent
464bc0f770
commit
d276da1359
@ -35,9 +35,9 @@ QString shortPathName(const QString & file)
|
|||||||
{
|
{
|
||||||
auto input = file.toStdWString();
|
auto input = file.toStdWString();
|
||||||
std::wstring output;
|
std::wstring output;
|
||||||
long length = GetShortPathNameW(input, NULL, 0);
|
long length = GetShortPathNameW(input.c_str(), NULL, 0);
|
||||||
output.resize(length);
|
output.resize(length);
|
||||||
GetShortPathNameW(input,output,length);
|
GetShortPathNameW(input.c_str(),(LPWSTR)output.c_str(),length);
|
||||||
QString ret = QString::fromStdWString(output);
|
QString ret = QString::fromStdWString(output);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user