13
votes
Vote UpVote

TStreamAdapter.Seek Broken For Large Files

The Delphi Geek – Yesterday a colleague informed me that he added a workaround for a VCL bug (which we confirmed to exist in XE2, XE4 and XE5) to our codebase and asked me if I could “inform the authorities”, i.e. enter it into QualityCentral. Imagine my surprise when I not only found the bug already entered but marked as fixed! The problematic code is posted below, problem marked with a yellow color as it is hard to spot.function TStreamAdapter.Seek(dlibMove: Largeint; dwOrigin: Longint; out libNewPosition: Largeint): HResult;var NewPos: LargeInt;begin try if (dwOrigin < STREAM_SEEK_SET) or (dwOrigin ...
Favorite? Off-Topic? gabr @ 2013-10-10 15:38

Statistics

Visits: 990
Votes: 13
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Darian Miller
DelphiDev
Edwin | Dev of LIVEditor
Jan Derk
Jeroen Pluimers
Lars Fosdal
Leif Uneus
Ravaut123
rhodydog
Robert Love
stukelly
Yanniel
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)