NOISSUE fix the build even more - win32 types are weird

This commit is contained in:
Petr Mrázek 2016-10-30 03:03:49 +01:00
parent 54e0b9bc9b
commit a717864013

View File

@ -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");