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
1 changed files with 1 additions and 1 deletions

View File

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