[Bug 2435] New: Typelib-generation - probable bug in hash-function

Wine Bugs wine-bugs at winehq.org
Thu Aug 19 19:32:13 CDT 2004


           Summary: Typelib-generation - probable bug in hash-function
           Product: Wine
           Version: 20040813
          Platform: All
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-ole
        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...

Åsmund Grøstad

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 mailing list