Commit 53128d52 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

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

parent 9d0c4c97
......@@ -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)
{
......
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