msi: Get extension name by strrchrW instead of strchrW.

This commit is contained in:
Qian Hong 2013-11-13 19:51:51 +08:00 committed by Alexandre Julliard
parent ff3d22ba42
commit 9612ed1ba6

View File

@ -3840,7 +3840,7 @@ static WCHAR *get_link_file( MSIPACKAGE *package, MSIRECORD *row )
filename = msi_dup_record_field( row, 3 );
msi_reduce_to_long_filename( filename );
extension = strchrW( filename, '.' );
extension = strrchrW( filename, '.' );
if (!extension || strcmpiW( extension, szlnk ))
{
int len = strlenW( filename );