Win32lib
- Posted by Jess Harpur <jach at blueyonder.co.uk> May 10, 2001
- 522 views
Hello, I'm usually just lurking but here's my contribution for what it's worth. -- Software ID: win32lib -- Version: 0.55.1 19/Dec/2000 Line 1620 contains an error which results in SIZEOF_MSG being two bytes too few. Consequently acquire_mem(0, SIZEOF_MSG) grabs less memory than required and calls to GetMessage write past the end of the allocated memory with unpredictable results. If this has been fixed in a later version of the library then "good on yer" ;) -- Type MSG msgHWnd = allot( Long ), msgMessage = allot( Integer ), *** Should be allot( UInt )*** msgWParam = allot( Long ), msgLParam = allot( Long ), msgTime = allot( DWord ), msgPtX = allot( Long ), msgPtY = allot( Long ), SIZEOF_MSG = allotted_size(), HTH. Jess