Qian Hong : msi: Get extension name by strrchrW instead of strchrW.

Alexandre Julliard julliard at winehq.org
Wed Nov 13 13:34:41 CST 2013


Module: wine
Branch: master
Commit: 9612ed1ba64b1067ce9e1b17306b0ca490f711d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9612ed1ba64b1067ce9e1b17306b0ca490f711d7

Author: Qian Hong <qhong at codeweavers.com>
Date:   Wed Nov 13 19:51:51 2013 +0800

msi: Get extension name by strrchrW instead of strchrW.

---

 dlls/msi/action.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index ade5a3c..2a0bf87 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -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 );




More information about the wine-cvs mailing list