.lnk evaluated incorrectly with Strg+Left / Strg+Right

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Hansl
Junior Member
Junior Member
Posts: 65
Joined: 2006-02-09, 21:15 UTC

.lnk evaluated incorrectly with Strg+Left / Strg+Right

Post by *Hansl »

Copied from http://ghisler.ch/board/viewtopic.php?t=20431&postdays=0&postorder=asc&start=15 :

When the cursor is set on a .lnk and Strg+Left / Strg+Right is pressed, the .lnk is often (not always) evaluated incorrectly: the other tab opens the directory containing the target file, but the cursor is NOT placed on the target. Check out the following example prepared by norfie²:

Code: Select all

begin 644 pack.rar
M4F%R(1H'`#O0<P@`#0````````#$`W2`@"@`"``````````"`````"V@43D=
M-0@`(````$%355,N3$]'`+^(9_:I_]3A7W20@"D`"``````````"`````"V@
M43D=-0D`(````$5%15!#+DQ/1P"_B&?VJ?_4&?MTD)`W`.````"3`0```C)M
M;TRKI5@Y'342`"````!!4D-(259%7#%<05-54RY,3DL`\.Q@(:<82[1.IR=O
ML[8W++Z=$S.'=>)\[-]=@E;SD?C]$6:XER1(:*D;F81G?CG.:*,B`%PO).6/
MEAS4<UF[*6.G6ZKKH+TJ![@==*JTBD\T5,76)W02(K*UQ++H;7)B:9"#";,F
M0E.X1O4-U.T)6!3O>I*#)E>2CYF2=+!>/W*#439V/,:6FS:MSM<E#I_%>3K@
M])2TNVWM)QP_X!12>+H$U*A;@VHS&6V0D+^@&E^XQL^R'CL(>;#,3V$3;OQ>
M/4*`X+P5=O(.<3&0+Z@*>J)*Y>O'!M6YQ.H["0"_B&?VJ?_4LI=TD)`U`!4`
M``"3`0```C)M;TRKI5@Y'340`"````!!4D-(259%7$%355,N3$Y+`/#L8"$,
MB_3*@M_CSLQM(*1\Q`R&'!^G7H!:SG20D#@`3P```)H!```"!F3GLZZE6#D=
M-1,`(````$%20TA)5D5<,5Q%14500RY,3DL`L*Y,+6"'EDTU8G>H+A;X.*W#
M,3-$S$B%Z5IOW:4#.O@.G^:O)[Y,ZU@(8R&KV=>G\KW6&6.XAD>36-)Z&)&-
MY[;I`C_F"\76Y.3>`+^(9_:I_]2EA'20D#8`$P```)H!```"!F3GLZZE6#D=
M-1$`(````$%20TA)5D5<145%4$,N3$Y+`+"N3"T04_3*_VO^Y&_05'VK1#&'
MZ;>0H_]T\)`N`````````````@````"YI5@Y%#`)`!````!!4D-(259%7#$`
M\.Q@(1<`=/"0+`````````````(`````KJ58.10P!P`0````05)#2$E610"P
*5.HJQ#U[`$`'````
`
end
sum -r/size 46416/775 
EEEPC.LNK points to c:\EEEPC.LOG
ASUS.LNK points to c:\ASUS.LOG
c:\ARCHIVE\EEEPC.LNK WRONG behaviour
c:\ARCHIVE\ASUS.LNK OK
c:\ARCHIVE\1\EEEPC.LNK OK
c:\ARCHIVE\1\ASUS.LNK OK

Even more weird: if you move this complete example to D:\ , including the targets, the .lnks should not work anymore because they still point to C:\ --- but:

d:\ARCHIVE\EEEPC.LNK opens d:\ and places the cursor on [..]
c:\ARCHIVE\ASUS.LNK opens d:\ and places the cursor on d:\ASUS.LOG
c:\ARCHIVE\1\EEEPC.LNK correctly gives an error
c:\ARCHIVE\1\ASUS.LNK correctly gives an error

Obviously the path inside the .lnk is not evaluated correctly by TC7.04a.


Thanks, Hansl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce this problem in the meantime from the description in another thread, and fix it for TC 7.5. The problem seems to depend on the relation of the length of the link versus the target name.
Author of Total Commander
https://www.ghisler.com
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

EEEPC.LNK points to c:\EEEPC.LOG
c:\ARCHIVE\EEEPC.LNK WRONG behaviour
c:\ARCHIVE\1\EEEPC.LNK OK
I can reproduce the wrong behavior with TC 7.04a (WinXP SP3) and confirm the fix with TC 7.50 (tried pb3)
Destination is set and file is focused correctly
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks a lot for testing this fix!
Author of Total Commander
https://www.ghisler.com
Post Reply