msi: remove trailing spaces from command line property name
Daniel Jeliński
djelinski1 at gmail.com
Fri May 17 16:27:26 CDT 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130517/c847203b/attachment-0001.html>
-------------- next part --------------
From 253bd4bbd0a91d11b632ad5959c455fca0db3be4 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Fri, 17 May 2013 23:24:10 +0200
Subject: msi: remove trailing spaces from command line property name
Fixes bug 33115
---
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;
--
1.7.5.4
More information about the wine-patches
mailing list