mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 21:34:00 +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);
|
Adapter);
|
||||||
NdisMSetPeriodicTimer(&Adapter->MediaDetectionTimer,
|
NdisMSetPeriodicTimer(&Adapter->MediaDetectionTimer,
|
||||||
MEDIA_DETECTION_INTERVAL);
|
MEDIA_DETECTION_INTERVAL);
|
||||||
|
NdisMRegisterAdapterShutdownHandler(Adapter->MiniportAdapterHandle,
|
||||||
|
Adapter,
|
||||||
|
MiniportShutdown);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DBG
|
#if DBG
|
||||||
|
@ -995,8 +998,6 @@ MiniportInitialize(
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NdisMRegisterAdapterShutdownHandler(Adapter->MiniportAdapterHandle, Adapter, MiniportShutdown);
|
|
||||||
|
|
||||||
DPRINT("returning 0x%x\n", Status);
|
DPRINT("returning 0x%x\n", Status);
|
||||||
*OpenErrorStatus = Status;
|
*OpenErrorStatus = Status;
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in a new issue