Skip to content

Commit 9f4eeac

Browse files
committed
Updated FullPathToRelativePath function
1 parent 9a8b62c commit 9f4eeac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wia.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ function FullPathToRelativePath(const ABasePath: String; var APath: String): Boo
728728
begin
729729
Result:= (Pos(ABasePath, APath) = 1);
730730
if Result
731-
then APath:= '.'+DirectorySeparator+Copy(APath, Length(ABasePath)-1, MaxInt);
731+
then APath:= '.'+DirectorySeparator+Copy(APath, Length(ABasePath)+1, MaxInt);
732732
end;
733733

734734
function WIAItemTypes(pItemType: LONG): TWIAItemTypes;

0 commit comments

Comments
 (0)