TParadoxDataset: Workaround to avoid crash when TParadoxDataset.First is called in a 64-bit application under Win-11/24H2.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9788 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
d4192904d8
commit
f828755ddf
@ -630,11 +630,24 @@ begin
|
||||
ReadBlock;
|
||||
end;
|
||||
|
||||
{
|
||||
procedure TParadoxDataset.InternalGotoBookmark(ABookmark: Pointer);
|
||||
begin
|
||||
if BookmarkValid(ABookmark) then
|
||||
SetRecNo(PLongWord(ABookmark)^);
|
||||
end;
|
||||
}
|
||||
procedure TParadoxDataset.InternalGotoBookmark(ABookmark: Pointer);
|
||||
var
|
||||
bm: LongWord;
|
||||
begin
|
||||
if ABookmark <> nil then
|
||||
begin
|
||||
bm := PLongWord(ABookmark)^;
|
||||
if bm <= GetRecordCount then
|
||||
SetRecNo(bm);
|
||||
end;
|
||||
end;
|
||||
|
||||
{
|
||||
procedure TParadoxDataset.InternalHandleException;
|
||||
|
Loading…
Reference in New Issue
Block a user