mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 14:16:30 +00:00
- 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:
parent
056316f3ac
commit
944616a1ea
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue