Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
4.5.2
-
None
Description
Steps to reproduce / test case:
qDebug() << QFile::symLinkTarget("C:
Acrobat Distiller 8.lnk");
In some lnk files, there is not absolute path, but only relative. But the function returns the absolute path to the application icon. E.g. "Acrobat Distiller 8.lnk" attached - the function returns the "C:\Windows\Installer{AC76BA86-1033-F400-BA7E-000000000003}_SC_Distiller.exe" .
More information:
Info about this link file by Link Viewer:
Shortcut file:
File name: Acrobat Distiller 8
Show style: Normal
Hotkey: (none)
Icon file: C:\Windows\Installer{AC76BA86-1033-F400-BA7E-000000000003}_SC_Distiller.exe
Icon index: 0
Link information:
This shortcut links not to a file or a directory.
File size: 0 Byte (0 KB)
File attributes: (no attributes)
Relative path: ..\..\..\..\..\Program Files\Adobe\Acrobat 8.0\Acrobat\acrodist.exe
Created: 01/01/1601 00:00:00 UTC
Modified: 01/01/1601 00:00:00 UTC
Last accessed: 01/01/1601 00:00:00 UTC
Update from reporter:
I think you need to use the IShellLink::Resolve method for fix this bug:
http://msdn.microsoft.com/en-us/library/bb774952(VS.85).aspx