mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:40:26 +02:00
win32: OpenURL should use SW_SHOWNORMAL in ShellExecute. Patch by Ere Maijala (issue #0016431)
git-svn-id: trunk@25290 -
This commit is contained in:
parent
b1347c7a57
commit
bebe7bf816
@ -263,12 +263,12 @@ begin
|
||||
if Win32Platform = VER_PLATFORM_WIN32_NT then
|
||||
begin
|
||||
ws := UTF8Decode(AURL);
|
||||
Result := ShellExecuteW(0, 'open', PWideChar(ws), nil, nil, 0) > 32;
|
||||
Result := ShellExecuteW(0, 'open', PWideChar(ws), nil, nil, SW_SHOWNORMAL) > 32;
|
||||
end
|
||||
else
|
||||
begin
|
||||
ans := Utf8ToAnsi(AURL); // utf8 must be converted to Windows Ansi-codepage
|
||||
Result := ShellExecute(0, 'open', PAnsiChar(ans), nil, nil, 0) > 32;
|
||||
Result := ShellExecute(0, 'open', PAnsiChar(ans), nil, nil, SW_SHOWNORMAL) > 32;
|
||||
end;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user