Incorrect imports in shlobj.pp: SHOpenFolderAndSelectItems
Original Reporter info from Mantis: Martok @martok
-
Reporter name:
Original Reporter info from Mantis: Martok @martok
- Reporter name:
Description:
File: source\packages\winunits-base\src\shlobj.pp:2549
Current import is:
function SHOpenFolderAndSelectItems(pidlFolder:LPCITEMIDLIST;cidl:UINT;var apidl: LPCITEMIDLIST; dwflags: DWORD):HResult;StdCall; external 'shell32' name 'SHOpenFolderAndSelectItems';
The "apidl" parameter is optional, so to be able to pass nil there the pointer nature needs to be preserved.
Suggested declaration:
type LPPCITEMIDLIST = ^LPCITEMIDLIST;
function SHOpenFolderAndSelectItems(pidlFolder:LPCITEMIDLIST;cidl:UINT; apidl: LPPCITEMIDLIST; dwflags: DWORD):HResult;StdCall; external 'shell32' name 'SHOpenFolderAndSelectItems';
Mantis conversion info:
- Mantis ID: 29036
- Build: r32316
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 32452 (#f69e6730)