Exiting the loop while someone else still might have a lock kind of defeats
authorGé van Geldorp <ge@gse.nl>
Sun, 1 Jan 2006 11:50:54 +0000 (11:50 +0000)
committerGé van Geldorp <ge@gse.nl>
Sun, 1 Jan 2006 11:50:54 +0000 (11:50 +0000)
the purpose of acquiring the lock ourselves

svn path=/trunk/; revision=20506

reactos/drivers/net/tcpip/recmutex/recmutex.c

index 068ebd7..550dbf8 100644 (file)
@@ -38,7 +38,6 @@ UINT RecursiveMutexEnter( PRECURSIVE_MUTEX RecMutex, BOOL ToWrite ) {
                                            FALSE,
                                            NULL );
            ExAcquireFastMutex( &RecMutex->Mutex );
-           if( Status == STATUS_SUCCESS ) break;
        }
        RecMutex->Locked = TRUE;
        RecMutex->Writer = ToWrite;