Author: cgutman
Date: Thu May 28 01:45:01 2009
New Revision: 41161
URL:
http://svn.reactos.org/svn/reactos?rev=41161&view=rev
Log:
- Only register a shutdown handler if adapter initialization has succeeded
Modified:
trunk/reactos/drivers/network/dd/pcnet/pcnet.c
Modified: trunk/reactos/drivers/network/dd/pcnet/pcnet.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/dd/pcnet/p…
==============================================================================
--- trunk/reactos/drivers/network/dd/pcnet/pcnet.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/dd/pcnet/pcnet.c [iso-8859-1] Thu May 28 01:45:01 2009
@@ -988,14 +988,15 @@
Adapter);
NdisMSetPeriodicTimer(&Adapter->MediaDetectionTimer,
MEDIA_DETECTION_INTERVAL);
+ NdisMRegisterAdapterShutdownHandler(Adapter->MiniportAdapterHandle,
+ Adapter,
+ MiniportShutdown);
}
#if DBG
if(!MiTestCard(Adapter))
ASSERT(0);
#endif
-
- NdisMRegisterAdapterShutdownHandler(Adapter->MiniportAdapterHandle, Adapter,
MiniportShutdown);
DPRINT("returning 0x%x\n", Status);
*OpenErrorStatus = Status;