Skip to content

Commit a34f00a

Browse files
author
vdisasmdev
committed
* use VAToRVA instead of manual conversion
1 parent f4577be commit a34f00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PE.Image.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ function TPEImage.RVAToVA(RVA: TRVA): UInt64;
13821382

13831383
function TPEImage.VAExists(VA: TRVA): boolean;
13841384
begin
1385-
Result := RVAToSec(VA - FOptionalHeader.ImageBase, nil);
1385+
Result := RVAToSec(VAToRVA(VA), nil);
13861386
end;
13871387

13881388
function TPEImage.VAToMem(VA: TVA): Pointer;

0 commit comments

Comments
 (0)