Author: cgutman
Date: Tue Aug 18 20:01:26 2009
New Revision: 42769
URL:
http://svn.reactos.org/svn/reactos?rev=42769&view=rev
Log:
- Handle failure of NdisMInitializeWrapper
- Found by Amine Khaldi
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] Tue Aug 18 20:01:26 2009
@@ -1342,6 +1342,7 @@
Characteristics.SendHandler = MiniportSend;
NdisMInitializeWrapper(&WrapperHandle, DriverObject, RegistryPath, 0);
+ if (!WrapperHandle) return NDIS_STATUS_FAILURE;
Status = NdisMRegisterMiniport(WrapperHandle, &Characteristics,
sizeof(Characteristics));
if(Status != NDIS_STATUS_SUCCESS)