projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d98b5f
)
Don't try to acquire the mutex, if the mutex already exist (reported by Joseph Galbra...
author
Hartmut Birr
<osexpert@googlemail.com>
Sat, 6 Aug 2005 15:55:59 +0000
(15:55 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Sat, 6 Aug 2005 15:55:59 +0000
(15:55 +0000)
svn path=/trunk/; revision=17100
reactos/lib/kernel32/synch/mutex.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/synch/mutex.c
b/reactos/lib/kernel32/synch/mutex.c
index
9752796
..
08d5e85
100644
(file)
--- a/
reactos/lib/kernel32/synch/mutex.c
+++ b/
reactos/lib/kernel32/synch/mutex.c
@@
-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);