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:
parent
2a320dbde8
commit
9c6b67090f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue