GH-1997 try to fix Windows build

Coding blind. Much !!FUN!!.
This commit is contained in:
Petr Mrázek 2017-09-27 04:10:09 +02:00
parent 464bc0f770
commit d276da1359

View File

@ -35,9 +35,9 @@ QString shortPathName(const QString & file)
{
auto input = file.toStdWString();
std::wstring output;
long length = GetShortPathNameW(input, NULL, 0);
long length = GetShortPathNameW(input.c_str(), NULL, 0);
output.resize(length);
GetShortPathNameW(input,output,length);
GetShortPathNameW(input.c_str(),(LPWSTR)output.c_str(),length);
QString ret = QString::fromStdWString(output);
return ret;
}