mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 03:37:54 +02:00
Merged revision(s) 52863 #8c06636b4b from trunk:
LazHelpHtml: UnQuotes the result of FinddefaultBrowser. Resolves issue #0030502. ........ git-svn-id: branches/fixes_1_6@52892 -
This commit is contained in:
parent
0afe553727
commit
797d33ae13
@ -334,6 +334,13 @@ begin
|
||||
ErrMsg:=hhsHelpNoHTMLBrowserFound;
|
||||
exit;
|
||||
end;
|
||||
{$ifdef windows}
|
||||
//The result of FindDefaultBrowser may or may not be quoted on Windows
|
||||
//Since on Windows, a filename cannot contain a double quote, we simply remove them
|
||||
//otherwise FileExistsUf8 and FileIsExecutable fail. Issue #0030502
|
||||
if (Length(Executable) > 1) and (Executable[1] = '"') and (Executable[Length(Executable)] = '"') then
|
||||
Executable := Copy(Executable, 2, Length(Executable)-2);
|
||||
{$endif windows}
|
||||
if (not FileExistsUTF8(Executable)) then begin
|
||||
ErrMsg:=Format(hhsHelpBrowserNotFound, [Executable]);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user