[SETUPAPI]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 18 Dec 2009 10:49:25 +0000 (10:49 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 18 Dec 2009 10:49:25 +0000 (10:49 +0000)
- Don't store deleted pointers in a list
- Found by HervĂ© Poussineau (hpoussin at reactos dot org)

svn path=/trunk/; revision=44649

reactos/dll/win32/setupapi/interface.c

index fc9f890..09234df 100644 (file)
@@ -365,8 +365,6 @@ InstallOneInterface(
         return FALSE;
     }
 
         return FALSE;
     }
 
-    InsertTailList(&devInfo->InterfaceListHead, &DevItf->ListEntry);
-
     memcpy(&DeviceInterfaceData.InterfaceClassGuid, &DevItf->InterfaceClassGuid, sizeof(GUID));
     DeviceInterfaceData.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
     DeviceInterfaceData.Flags = DevItf->Flags;
     memcpy(&DeviceInterfaceData.InterfaceClassGuid, &DevItf->InterfaceClassGuid, sizeof(GUID));
     DeviceInterfaceData.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
     DeviceInterfaceData.Flags = DevItf->Flags;