http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6382ffa
)
Better guid hash.
author
Huw Davies
<huw@codeweavers.com>
Thu, 20 Jan 2005 20:33:48 +0000
(20:33 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Thu, 20 Jan 2005 20:33:48 +0000
(20:33 +0000)
tools/widl/write_msft.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/widl/write_msft.c
b/tools/widl/write_msft.c
index b98335a41db8f3327bd918e3ba0287d889cb4426..f8673b28d46df404fb36f4ab2411b9ec6e8b49a5 100644
(file)
--- a/
tools/widl/write_msft.c
+++ b/
tools/widl/write_msft.c
@@
-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
;
}
/****************************************************************************