Avoid a loop where a parent's parent refers to itself as its parent.

This commit is contained in:
Aric Stewart 2005-06-09 15:35:48 +00:00 committed by Alexandre Julliard
parent 78a3e63377
commit d1a7f070d4
1 changed files with 1 additions and 2 deletions

View File

@ -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");