Module: wine Branch: master Commit: 53128d522b44759d60cdb38586be52ba22b4f0e2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=53128d522b44759d60cdb38586...
Author: Vincent Povirk vincent@codeweavers.com Date: Wed Nov 18 10:27:16 2009 -0600
ole32: Use safe list iteration when searching for streams to invalidate.
---
dlls/ole32/storage32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 96e3e00..4cfc76f 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -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) {