ole32: Use safe list iteration when searching for streams to invalidate.

This commit is contained in:
Vincent Povirk 2009-11-18 10:27:16 -06:00 committed by Alexandre Julliard
parent 9d0c4c971d
commit 53128d522b
1 changed files with 2 additions and 2 deletions

View File

@ -1903,10 +1903,10 @@ static HRESULT deleteStreamContents(
IStream *pis;
HRESULT hr;
ULARGE_INTEGER size;
StgStreamImpl *strm;
StgStreamImpl *strm, *strm2;
/* Invalidate any open stream objects. */
LIST_FOR_EACH_ENTRY(strm, &parentStorage->strmHead, StgStreamImpl, StrmListEntry)
LIST_FOR_EACH_ENTRY_SAFE(strm, strm2, &parentStorage->strmHead, StgStreamImpl, StrmListEntry)
{
if (strm->dirEntry == indexToDelete)
{