msi: Return INSTALLSTATE_ADVERTISED if the component list is empty.
This commit is contained in:
parent
1130d5909b
commit
73e0a87477
|
@ -1270,11 +1270,7 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
|
|||
TRACE("rc = %d buffer = %s\n", rc, debugstr_w(components));
|
||||
|
||||
if (!components)
|
||||
{
|
||||
ERR("components missing %s %s\n",
|
||||
debugstr_w(szProduct), debugstr_w(szFeature));
|
||||
return INSTALLSTATE_UNKNOWN;
|
||||
}
|
||||
return INSTALLSTATE_ADVERTISED;
|
||||
|
||||
for( p = components; *p != 2 ; p += 20)
|
||||
{
|
||||
|
|
|
@ -585,10 +585,7 @@ static void test_MsiQueryFeatureState(void)
|
|||
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
|
||||
|
||||
state = MsiQueryFeatureStateA(prodcode, "feature");
|
||||
todo_wine
|
||||
{
|
||||
ok(state == INSTALLSTATE_ADVERTISED, "Expected INSTALLSTATE_ADVERTISED, got %d\n", state);
|
||||
}
|
||||
ok(state == INSTALLSTATE_ADVERTISED, "Expected INSTALLSTATE_ADVERTISED, got %d\n", state);
|
||||
|
||||
res = RegSetValueExA(localkey, "feature", 0, REG_SZ, (const BYTE *)"aaaaaaaaaaaaaaaaaaa", 20);
|
||||
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
|
||||
|
|
Loading…
Reference in New Issue