ole32: Fix the loop in CompositeMonikerImpl_Hash, as IEnumMoniker_Next

will return S_FALSE when there are no more monikers left to enumerate.
This commit is contained in:
Robert Shearman 2006-05-08 12:38:03 +01:00 committed by Alexandre Julliard
parent 2a320dbde8
commit 9c6b67090f
1 changed files with 1 additions and 5 deletions

View File

@ -601,11 +601,7 @@ CompositeMonikerImpl_Hash(IMoniker* iface,DWORD* pdwHash)
if(FAILED(res))
return res;
while(1){
res=IEnumMoniker_Next(enumMoniker,1,&tempMk,NULL);
if(FAILED(res))
break;
while(IEnumMoniker_Next(enumMoniker,1,&tempMk,NULL)==S_OK){
res = IMoniker_Hash(tempMk, &tempHash);
if(FAILED(res))
break;