Author: cgutman
Date: Tue Sep 23 13:07:26 2008
New Revision: 36430
URL:
http://svn.reactos.org/svn/reactos?rev=36430&view=rev
Log:
- We must check that NdisWrapperHandle is non-NULL to see if NdisMInitializeWrapper
succeeded
Modified:
branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c
Modified: branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c [iso-8859-1] Tue
Sep 23 13:07:26 2008
@@ -939,6 +939,11 @@
RegistryPath,
NULL);
+ if (!NdisWrapperHandle) {
+ NDIS_DbgPrint(MIN_TRACE, ("NdisMInitializeWrapper() failed\n"));
+ return STATUS_UNSUCCESSFUL;
+ }
+
DriverInfo.NdisWrapperHandle = NdisWrapperHandle;
DriverInfo.NdisMacHandle = NULL;
InitializeListHead(&DriverInfo.AdapterListHead);