Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
3.0.1
-
None
Description
Using CreateShortcut on Windows with a URL (http:..), it correctly creates an InternetShortcut instead of a ShellLink (which is used for regular shortcuts). However, other arguments to CreateShortcut appear to be ignored in this case - That is, I want to use an explicit icon for my URL shortcut, but it is not set.
Looking at the source code, I see in createshortcutoperation.cpp that for ShellLinks, the optional arguments (e.g., icon, description) are applied to the link object after it is created. However, this is not done for the InternetShortcut.
The additional/optional arguments should either be applied, or a warning provided, or a separate CreateShortcut method for URLs with only the arguments actually used.