summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/launch
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-27 04:10:09 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-27 04:10:09 +0200
commitd276da13598e14f2d561d9ffb053c07af59eca82 (patch)
treee4ebfcae07abed6393d89fe528628f8c1869be29 /api/logic/minecraft/launch
parent464bc0f770880737597954fee8d48035b3274d6d (diff)
downloadMultiMC-d276da13598e14f2d561d9ffb053c07af59eca82.tar
MultiMC-d276da13598e14f2d561d9ffb053c07af59eca82.tar.gz
MultiMC-d276da13598e14f2d561d9ffb053c07af59eca82.tar.lz
MultiMC-d276da13598e14f2d561d9ffb053c07af59eca82.tar.xz
MultiMC-d276da13598e14f2d561d9ffb053c07af59eca82.zip
GH-1997 try to fix Windows build
Coding blind. Much !!FUN!!.
Diffstat (limited to 'api/logic/minecraft/launch')
-rw-r--r--api/logic/minecraft/launch/LauncherPartLaunch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/minecraft/launch/LauncherPartLaunch.cpp b/api/logic/minecraft/launch/LauncherPartLaunch.cpp
index 3f9cf05a..c5b2219a 100644
--- a/api/logic/minecraft/launch/LauncherPartLaunch.cpp
+++ b/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;
}