- When creating a mutex, and you intend to release it without waiting for it, then you should specify so in bInitialOwner

svn path=/trunk/; revision=35862
This commit is contained in:
Stefan Ginsberg 2008-09-01 20:42:21 +00:00
parent 056316f3ac
commit 944616a1ea

View file

@ -357,7 +357,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
memcpy(szName, (LPVOID)ptr, Length * sizeof(WCHAR));
szName[Length] = L'\0';
hMutex = CreateMutexW(NULL, FALSE, szName);
hMutex = CreateMutexW(NULL, TRUE, szName);
if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS))
return;