summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}