Commit 00e1ecdc authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

When checking for an existing .lnk shortcut extension on the filename

do not just search for '.' but actually verify it is '.lnk'.
parent 86fead3c
......@@ -4701,7 +4701,7 @@ static UINT ACTION_CreateShortcuts(MSIPACKAGE *package)
sz = 0x100;
MSI_RecordGetStringW(row,3,buffer,&sz);
reduce_to_longfilename(buffer);
if (!strchrW(buffer,'.'))
if (!strchrW(buffer,'.') || strcmpiW(strchrW(buffer,'.'),szlnk))
strcatW(buffer,szlnk);
target_file = build_directory_name(2, target_folder, buffer);
HeapFree(GetProcessHeap(),0,target_folder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment