Skip to content

Commit

Permalink
GH-1997 try to fix Windows build
Browse files Browse the repository at this point in the history
Coding blind. Much !!FUN!!.
  • Loading branch information
peterix committed Sep 27, 2017
1 parent 464bc0f commit d276da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/logic/minecraft/launch/LauncherPartLaunch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d276da1

Please sign in to comment.