msi: Remove trailing spaces from command line property name.

This commit is contained in:
Daniel Jelinski 2013-05-17 23:24:10 +02:00 committed by Alexandre Julliard
parent 7e0c42e839
commit 4b4bd0201c
1 changed files with 2 additions and 0 deletions

View File

@ -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;