msi: Remove trailing spaces from command line property name.
This commit is contained in:
parent
7e0c42e839
commit
4b4bd0201c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue