- Handle failure of NdisMInitializeWrapper
authorCameron Gutman <aicommander@gmail.com>
Tue, 18 Aug 2009 18:01:26 +0000 (18:01 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 18 Aug 2009 18:01:26 +0000 (18:01 +0000)
 - Found by Amine Khaldi

svn path=/trunk/; revision=42769

reactos/drivers/network/dd/pcnet/pcnet.c

index b05dfb0..f6c4630 100644 (file)
@@ -1342,6 +1342,7 @@ DriverEntry(
   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)