According to the description of BrowseForFiles in swell-functions.h:
Quote:
// if allowmul is set, the multiple files are specified the same way GetOpenFileName() returns.
|
According to Microsoft's documentation, GetOpenFileName should return multiple files as follows:
Quote:
If the OFN_ALLOWMULTISELECT flag is set and the user selects multiple files, the buffer contains the current directory followed by the file names of the selected files. For Explorer-style dialog boxes, the directory and file name strings are NULL separated, with an extra NULL character after the last file name.
|
On Linux, BrowseForFiles returns multiple files correctly.
On MacOS, however, the first substring, which should contain the folder, is empty, and each subsequent substring contains the full path of each file: