break;
case ' ':
state = state_whitespace;
- if (!count || !len) goto done;
+ if (!count) goto done;
in_quotes = 1;
break;
default:
BOOL preserve_case )
{
LPCWSTR ptr, ptr2;
- int quotes;
+ int num_quotes;
DWORD len;
WCHAR *prop, *val;
UINT r;
ptr2++;
while (*ptr2 == ' ') ptr2++;
- quotes = 0;
+ num_quotes = 0;
val = msi_alloc( (strlenW( ptr2 ) + 1) * sizeof(WCHAR) );
- len = parse_prop( ptr2, val, "es );
- if (quotes % 2)
+ len = parse_prop( ptr2, val, &num_quotes );
+ if (num_quotes % 2)
{
WARN("unbalanced quotes\n");
msi_free( val );
r = MsiInstallProductA(msifile, cmd);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
+ cmd = "P=\" \"";
+ r = MsiInstallProductA(msifile, cmd);
+ ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
+
cmd = "P=one";
r = MsiInstallProductA(msifile, cmd);
ok(r == ERROR_INSTALL_FAILURE, "Expected ERROR_INSTALL_FAILURE, got %u\n", r);