Win32 LCLIntf.OpenURL should use SW_SHOWNORMAL in ShellExecute
Original Reporter info from Mantis: emaijala
-
Reporter name: Ere Maijala
Original Reporter info from Mantis: emaijala
- Reporter name: Ere Maijala
Description:
The last parameter, nShowCmd in ShellExecute calls in LCLIntf.OpenURL is currently 0, equal to SW_HIDE. Thus it's not possible to show a folder using something like OpenURL('C:\Program Files') or OpenURL('file:///C:\Program Files') because Windows hides the window right away. My suggestion would be to change the parameter to SW_SHOWNORMAL. A patch is attached.
Steps to reproduce:
Create a program that calls OpenURL('C:\Program Files').
Mantis conversion info:
- Mantis ID: 16431
- OS: Win
- OS Build: XP
- Platform: x86
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 25290 (#bebe7bf8)