diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-27 04:10:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-27 04:10:09 +0200 |
commit | d276da13598e14f2d561d9ffb053c07af59eca82 (patch) | |
tree | e4ebfcae07abed6393d89fe528628f8c1869be29 /api | |
parent | 464bc0f770880737597954fee8d48035b3274d6d (diff) | |
download | MultiMC-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')
-rw-r--r-- | api/logic/minecraft/launch/LauncherPartLaunch.cpp | 4 |
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; } |