mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
- Only register a shutdown handler if adapter initialization has succeeded
svn path=/trunk/; revision=41161
This commit is contained in:
parent
92d38ba763
commit
cabc0627ac
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue