Fixed crash that occurs when the DLL is unloaded before being initialized first.
This commit is contained in:
parent
329787a5a4
commit
41cc9deb34
@ -1367,6 +1367,8 @@ UnInitializeLibrary(void)
|
||||
}
|
||||
|
||||
pListEntry = g_ATSHostList.Flink;
|
||||
if (pListEntry)
|
||||
{
|
||||
while (pListEntry != &g_ATSHostList)
|
||||
{
|
||||
pHostEntry = CONTAINING_RECORD(pListEntry, ATSHostEntry, listEntry);
|
||||
@ -1376,6 +1378,7 @@ UnInitializeLibrary(void)
|
||||
free(pHostEntry);
|
||||
pListEntry = g_ATSHostList.Flink;
|
||||
}
|
||||
}
|
||||
|
||||
DbgTrace(1, "-UnInitializeLibrary- End\n", 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user