Permalink
Browse files

GH-1997 try to fix Windows build

Coding blind. Much !!FUN!!.
  • Loading branch information...
peterix committed Sep 27, 2017
1 parent 464bc0f commit d276da13598e14f2d561d9ffb053c07af59eca82
Showing with 2 additions and 2 deletions.
  1. +2 −2 api/logic/minecraft/launch/LauncherPartLaunch.cpp
@@ -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;
}

0 comments on commit d276da1

Please sign in to comment.