summaryrefslogtreecommitdiffstats
path: root/libraries/LocalPeer
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/LocalPeer')
-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 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");