mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
- Only register a shutdown handler if adapter initialization has succeeded
svn path=/trunk/; revision=41161
This commit is contained in:
@@ -988,6 +988,9 @@ MiniportInitialize(
|
||||
Adapter);
|
||||
NdisMSetPeriodicTimer(&Adapter->MediaDetectionTimer,
|
||||
MEDIA_DETECTION_INTERVAL);
|
||||
NdisMRegisterAdapterShutdownHandler(Adapter->MiniportAdapterHandle,
|
||||
Adapter,
|
||||
MiniportShutdown);
|
||||
}
|
||||
|
||||
#if DBG
|
||||
@@ -995,8 +998,6 @@ MiniportInitialize(
|
||||
ASSERT(0);
|
||||
#endif
|
||||
|
||||
NdisMRegisterAdapterShutdownHandler(Adapter->MiniportAdapterHandle, Adapter, MiniportShutdown);
|
||||
|
||||
DPRINT("returning 0x%x\n", Status);
|
||||
*OpenErrorStatus = Status;
|
||||
return Status;
|
||||
|
||||
Reference in New Issue
Block a user