win32: OpenURL should use SW_SHOWNORMAL in ShellExecute. Patch by Ere Maijala (issue #0016431)

git-svn-id: trunk@25290 -
This commit is contained in:
paul 2010-05-10 09:21:53 +00:00
parent b1347c7a57
commit bebe7bf816

View File

@ -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;