Don't get caught in loops on parent progids.

This commit is contained in:
Aric Stewart 2005-06-06 15:39:59 +00:00 committed by Alexandre Julliard
parent a12897b884
commit f9e64e8187
1 changed files with 2 additions and 1 deletions

View File

@ -4565,7 +4565,8 @@ 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)
while (package->progids[pindex].ParentIndex>= 0 &&
package->progids[pindex].ParentIndex != pindex)
pindex = package->progids[pindex].ParentIndex;
FIXME("BAD BAD need to determing if we are really the CurVer\n");