Daniel Jelinski : msi: Remove trailing spaces from command line property name.

Alexandre Julliard julliard at winehq.org
Mon May 20 15:13:58 CDT 2013


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

Author: Daniel Jelinski <djelinski1 at gmail.com>
Date:   Fri May 17 23:24:10 2013 +0200

msi: Remove trailing spaces from command line property name.

---

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index f519f4b..e6422a7 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -332,6 +332,8 @@ UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine,
         len = ptr2 - ptr;
         if (!len) return ERROR_INVALID_COMMAND_LINE;
 
+        while (ptr[len - 1] == ' ') len--;
+
         prop = msi_alloc( (len + 1) * sizeof(WCHAR) );
         memcpy( prop, ptr, len * sizeof(WCHAR) );
         prop[len] = 0;




More information about the wine-cvs mailing list