Avoid a loop where a parent's parent refers to itself as its parent.
This commit is contained in:
parent
78a3e63377
commit
d1a7f070d4
|
@ -4563,8 +4563,7 @@ static INT load_progid(MSIPACKAGE* package, MSIRECORD *row)
|
|||
package->progids[index].ParentIndex != index)
|
||||
{
|
||||
int pindex = package->progids[index].ParentIndex;
|
||||
while (package->progids[pindex].ParentIndex>= 0 &&
|
||||
package->progids[pindex].ParentIndex != pindex)
|
||||
while (package->progids[pindex].ParentIndex>= 0)
|
||||
pindex = package->progids[pindex].ParentIndex;
|
||||
|
||||
FIXME("BAD BAD need to determing if we are really the CurVer\n");
|
||||
|
|
Loading…
Reference in New Issue