diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-10-30 03:03:49 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-10-30 03:03:49 +0100 |
commit | a7178640132948cf046627e42c06a9c19e745e85 (patch) | |
tree | 1d9171418e9634293c5a9c660a5e9139bfecfdab | |
parent | 54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a (diff) | |
download | MultiMC-a7178640132948cf046627e42c06a9c19e745e85.tar MultiMC-a7178640132948cf046627e42c06a9c19e745e85.tar.gz MultiMC-a7178640132948cf046627e42c06a9c19e745e85.tar.lz MultiMC-a7178640132948cf046627e42c06a9c19e745e85.tar.xz MultiMC-a7178640132948cf046627e42c06a9c19e745e85.zip |
NOISSUE fix the build even more - win32 types are weird
-rw-r--r-- | libraries/LocalPeer/src/LockedFile_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/LocalPeer/src/LockedFile_win.cpp b/libraries/LocalPeer/src/LockedFile_win.cpp index d37bb3be..f93ef27f 100644 --- a/libraries/LocalPeer/src/LockedFile_win.cpp +++ b/libraries/LocalPeer/src/LockedFile_win.cpp @@ -59,14 +59,14 @@ Qt::HANDLE LockedFile::getMutexHandle(int idx, bool doCreate) Qt::HANDLE mutex; if (doCreate) { - mutex = CreateMutexW(NULL, FALSE, (LPWSTR*)mname.utf16()); + mutex = CreateMutexW(NULL, FALSE, (LPCWSTR)mname.utf16()); if (!mutex) { qErrnoWarning("QtLockedFile::lock(): CreateMutex failed"); return 0; } } else { - OpenMutexW(SYNCHRONIZE | MUTEX_MODIFY_STATE, FALSE, (LPWSTR*)mname.utf16()); + OpenMutexW(SYNCHRONIZE | MUTEX_MODIFY_STATE, FALSE, (LPCWSTR)mname.utf16()); if (!mutex) { if (GetLastError() != ERROR_FILE_NOT_FOUND) qErrnoWarning("QtLockedFile::lock(): OpenMutex failed"); |