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

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:56 CST 2014


Module: wine
Branch: stable
Commit: 262db8f8fc4aa7c8f60f24609f582ca1763994cb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=262db8f8fc4aa7c8f60f24609f582ca1763994cb

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.

(cherry picked from commit 9612ed1ba64b1067ce9e1b17306b0ca490f711d7)

---

 dlls/msi/action.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index d964787..cd5230a 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -3839,7 +3839,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