_dbg_ILGetNext returns NULL if pidl->mkid.cb is zero, fix the loops

accordingly.
oldstable
Filip Navara 2005-03-16 19:51:13 +00:00 committed by Alexandre Julliard
parent c7e815c53b
commit 9f2bbd6566
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ void pdump (LPCITEMIDLIST pidl)
pidltemp = _dbg_ILGetNext(pidltemp);
} while (pidltemp->mkid.cb);
} while (pidltemp);
}
else
{
@ -275,7 +275,7 @@ BOOL pcheck (LPCITEMIDLIST pidl)
}
}
pidltemp = _dbg_ILGetNext(pidltemp);
} while (pidltemp->mkid.cb);
} while (pidltemp);
}
return ret;
}