mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +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
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
|
||||||
|
|
||||||
memcpy(szName, (LPVOID)ptr, Length * sizeof(WCHAR));
|
memcpy(szName, (LPVOID)ptr, Length * sizeof(WCHAR));
|
||||||
szName[Length] = L'\0';
|
szName[Length] = L'\0';
|
||||||
hMutex = CreateMutexW(NULL, FALSE, szName);
|
hMutex = CreateMutexW(NULL, TRUE, szName);
|
||||||
|
|
||||||
if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS))
|
if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue