Commit 9f2bbd65 authored by Filip Navara's avatar Filip Navara Committed by Alexandre Julliard

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

accordingly.
parent c7e815c5
......@@ -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;
}
......
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