On Fri Jan 6 00:43:12 2023 +0000, Vladislav Timonin wrote:
changed this line in [version 10 of the diff](/wine/wine/-/merge_requests/1857/diffs?diff_id=26423&start_sha=96400d1fa1afd6189a4e33120a5735345b5d39e6#c5f72e8879f3ca9a661b6a87f3ea5dead8456892_230_240)
Yup, thats the known folders. Not sure how to handle them. Briefly checked `SHParseDisplayName` on Windows, and it failed on `Desktop`, unless I'm just using a wrong set of SFGAOF attributes.
Glancing over usage of known folders IDs in Wine, I'm getting a suspicion that there's no such handy function.
There's `IKnownFolderManager::GetFolderByName`, but that wants a non-localized canonical name (which is fine for now, since Wine doesn't seem to do localization for known folders anyway), but canonical doesn't match the "human-readable" name in some cases, e.g. `Control Panel`' canonical name is `ControlPanelFolder`
Did forget about relative paths. Fixed that at the very least.