Author: cgutman
Date: Sat Aug 16 10:06:12 2008
New Revision: 35393
URL:
http://svn.reactos.org/svn/reactos?rev=35393&view=rev
Log:
- Move SocketAcquireStateLock out of SEH
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/info.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/info.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/info.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/info.c [iso-8859-1] Sat Aug 16
10:06:12 2008
@@ -24,12 +24,9 @@
AFD_DbgPrint(MID_TRACE,("Called %x %x\n", InfoReq,
InfoReq ? InfoReq->InformationClass : 0));
+ if( !SocketAcquireStateLock( FCB ) ) return LostSocket( Irp );
+
_SEH_TRY {
- if( !SocketAcquireStateLock( FCB ) ) {
- Status = LostSocket( Irp );
- _SEH_YIELD(return Status);
- }
-
switch( InfoReq->InformationClass ) {
case AFD_INFO_RECEIVE_WINDOW_SIZE:
InfoReq->Information.Ulong = FCB->Recv.Size;