[Bug 2435] New: Typelib-generation - probable bug in hash-function
wine-bugs at winehq.org
Thu Aug 19 19:32:13 CDT 2004
Summary: Typelib-generation - probable bug in hash-function
OS/Version: Windows XP
AssignedTo: wine-bugs at winehq.org
ReportedBy: aag at computas.com
I haven't actually used wine - but used some of the sourcecode for wine to
write my own functions for parsing existing win32 tlb's (MSFT)
If I rely on the hash-value generated by ctl2_hash_guid in typelib2.c,
I get a mismatch with the values in the typelib I examine.
If however I alter the return-statemet from
return (hash & 0xf) | ((hash & 0x10) & (0 - !!(hash & 0xe0)));
return (hash & 0xf) | (hash & 0x10);
the generated hash-values seems to be correct. I didn't quite figure out what
the intention of the part I deleted was anyway...
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs