mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Don't try to acquire the mutex, if the mutex already exist (reported by Joseph Galbraith).
svn path=/trunk/; revision=17100
This commit is contained in:
parent
4d98b5f8f7
commit
d46f0ac6da
1 changed files with 4 additions and 4 deletions
|
@ -99,13 +99,13 @@ CreateMutexW(LPSECURITY_ATTRIBUTES lpMutexAttributes,
|
|||
&ObjectAttributes);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
if(bInitialOwner)
|
||||
{
|
||||
WaitForSingleObject(MutantHandle, INFINITE);
|
||||
}
|
||||
SetLastError(ERROR_ALREADY_EXISTS);
|
||||
}
|
||||
}
|
||||
else if (NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
}
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
|
|
Loading…
Reference in a new issue