Skip to content

Commit a7d9d19

Browse files
committed
proxy function
1 parent 60a5129 commit a7d9d19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Src/Curl.Lib.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,7 @@ function ProxyFromIe : string;
27542754
begin
27552755
strs := nil;
27562756
reg := TRegistry.Create;
2757+
Result := '';
27572758
try
27582759
reg.RootKey := HKEY_CURRENT_USER;
27592760
reg.OpenKeyReadOnly('\Software\Microsoft\Windows\CurrentVersion\Internet Settings');
@@ -2772,6 +2773,7 @@ function ProxyFromIe : string;
27722773
then continue;
27732774
end;
27742775

2776+
// If pEqual = 0, take entire string
27752777
Result := Copy(s, pEqual + 1, Length(s));
27762778
break;
27772779
end;

0 commit comments

Comments
 (0)