- Handle failure of NdisMInitializeWrapper

- Found by Amine Khaldi

svn path=/trunk/; revision=42769
This commit is contained in:
Cameron Gutman 2009-08-18 18:01:26 +00:00
parent 38a3ccc3fd
commit ab9f22b2e8

View file

@ -1342,6 +1342,7 @@ DriverEntry(
Characteristics.SendHandler = MiniportSend; Characteristics.SendHandler = MiniportSend;
NdisMInitializeWrapper(&WrapperHandle, DriverObject, RegistryPath, 0); NdisMInitializeWrapper(&WrapperHandle, DriverObject, RegistryPath, 0);
if (!WrapperHandle) return NDIS_STATUS_FAILURE;
Status = NdisMRegisterMiniport(WrapperHandle, &Characteristics, sizeof(Characteristics)); Status = NdisMRegisterMiniport(WrapperHandle, &Characteristics, sizeof(Characteristics));
if(Status != NDIS_STATUS_SUCCESS) if(Status != NDIS_STATUS_SUCCESS)