[Wine-patches] [eter-2.1 2/2] msi: Correctly parse double quotes in the token value. (eterbug #8375).
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Ср Окт 7 11:33:57 MSK 2015
This fixes an installer that passes to InstallProduct a command line like
PROPERTY1="Installing ""Product name"" version 8.0" PROPERTY2=1 PROPERTY3=1
In this case properties PROPERTY2 and PROPERTY3 were not recognized and that
led to an installation failure when a custom action didn't see them as set.
---
dlls/msi/action.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 16112df..408c8b0 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -244,7 +244,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
{
case '"':
state = state_quote;
- if (in_quotes) count--;
+ if (in_quotes && p[1] != '\"') count--;
else count++;
break;
case ' ':
@@ -328,7 +328,7 @@ UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine,
ptr2 = strchrW( ptr, '=' );
if (!ptr2) return ERROR_INVALID_COMMAND_LINE;
-
+
len = ptr2 - ptr;
if (!len) return ERROR_INVALID_COMMAND_LINE;
--
2.6.0
Подробная информация о списке рассылки Wine-patches