Module: wine Branch: refs/heads/master Commit: f774f7b79c10768ff05bf7930794a98646b5396a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f774f7b79c10768ff05bf793...
Author: Robert Shearman rob@codeweavers.com Date: Sat Jul 8 11:54:17 2006 +0100
oleaut32: Make ctl2_hash_guid match the same function in widl, which has likely had much wider testing.
---
dlls/oleaut32/typelib2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index c872d4c..cbcf8f5 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -276,7 +276,7 @@ static int ctl2_hash_guid( hash ^= ((const short *)guid)[i]; }
- return (hash & 0xf) | ((hash & 0x10) & (0 - !!(hash & 0xe0))); + return hash & 0x1f; }
/****************************************************************************