Commit 218281c4 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Better guid hash.

parent 6382ffae
......@@ -182,7 +182,7 @@ static void ctl2_init_segdir(
* The hash key for the GUID.
*/
static int ctl2_hash_guid(
REFGUID guid) /* [I] The guid to find. */
REFGUID guid) /* [I] The guid to hash. */
{
int hash;
int i;
......@@ -192,7 +192,7 @@ static int ctl2_hash_guid(
hash ^= ((const short *)guid)[i];
}
return (hash & 0xf) | ((hash & 0x10) & (0 - !!(hash & 0xe0)));
return hash & 0x1f;
}
/****************************************************************************
......
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