summaryrefslogtreecommitdiffstats
path: root/libraries/LocalPeer/src
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-10-30 02:53:13 +0100
committerPetr Mrázek <peterix@gmail.com>2016-10-30 02:53:13 +0100
commit54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a (patch)
tree6a6153d69432ad914942bc87b34bcb7c897b0661 /libraries/LocalPeer/src
parent249e5c13d794a0ce6455fc5dc51020cf533526f8 (diff)
downloadMultiMC-54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a.tar
MultiMC-54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a.tar.gz
MultiMC-54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a.tar.lz
MultiMC-54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a.tar.xz
MultiMC-54e0b9bc9b71f2f7cb8a4fb0aa7832ea50866d1a.zip
NOISSUE fix build some more - Windows
Diffstat (limited to 'libraries/LocalPeer/src')
-rw-r--r--libraries/LocalPeer/src/LockedFile_win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/LocalPeer/src/LockedFile_win.cpp b/libraries/LocalPeer/src/LockedFile_win.cpp
index 3d7d5553..d37bb3be 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, (TCHAR*)mname.utf16());
+ mutex = CreateMutexW(NULL, FALSE, (LPWSTR*)mname.utf16());
if (!mutex) {
qErrnoWarning("QtLockedFile::lock(): CreateMutex failed");
return 0;
}
}
else {
- OpenMutexW(SYNCHRONIZE | MUTEX_MODIFY_STATE, FALSE, (TCHAR*)mname.utf16());
+ OpenMutexW(SYNCHRONIZE | MUTEX_MODIFY_STATE, FALSE, (LPWSTR*)mname.utf16());
if (!mutex) {
if (GetLastError() != ERROR_FILE_NOT_FOUND)
qErrnoWarning("QtLockedFile::lock(): OpenMutex failed");