From: Hans Leidekker <hans(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57024 --- programs/msiexec/msiexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index d625b7a9b51..065730c7ff1 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -166,7 +166,7 @@ static LPWSTR build_properties(struct string_list *property_list) /* check if the value contains spaces and maybe quote it */ value++; - needs_quote = wcschr(value,' ') ? 1 : 0; + needs_quote = *value != '"' && wcschr(value, ' '); if(needs_quote) *p++ = '"'; len = lstrlenW(value); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6434