Commit d1a7f070 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 78a3e633
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment