ole32: Fix the algorithm used in CompositeMonikerImpl_Hash to match native.

This commit is contained in:
Robert Shearman 2006-05-08 12:42:16 +01:00 committed by Alexandre Julliard
parent e97709ff6d
commit 340f7a3ec0
2 changed files with 1 additions and 3 deletions

View File

@ -622,7 +622,7 @@ CompositeMonikerImpl_Hash(IMoniker* iface,DWORD* pdwHash)
res = IMoniker_Hash(tempMk, &tempHash);
if(FAILED(res))
break;
*pdwHash = (*pdwHash * 37) + tempHash;
*pdwHash = *pdwHash ^ tempHash;
IMoniker_Release(tempMk);
}

View File

@ -657,11 +657,9 @@ static void test_generic_composite_moniker(void)
hr = IMoniker_Hash(moniker, &hash);
ok_ole_success(hr, IMoniker_Hash);
todo_wine {
ok(hash == 0xd87,
"Hash value != 0xd87, instead was 0x%08lx\n",
hash);
}
/* IsSystemMoniker test */