msi/tests: suminfo: Add tests for MsiSummaryInfoGetProperty for unknown property values.

oldstable
Misha Koshelev 2007-06-04 09:25:37 -05:00 committed by Alexandre Julliard
parent 7de83c18bd
commit b9ea25721b
1 changed files with 10 additions and 0 deletions

View File

@ -99,6 +99,16 @@ static void test_suminfo(void)
r = MsiSummaryInfoGetProperty(hsuminfo, 0, NULL, NULL, NULL, 0, NULL);
ok(r == ERROR_SUCCESS, "getpropcount failed\n");
/* Page faults in wine */
if (0)
{
r = MsiSummaryInfoGetProperty(hsuminfo, -1, NULL, NULL, NULL, 0, NULL);
ok(r == ERROR_UNKNOWN_PROPERTY, "MsiSummaryInfoGetProperty wrong error\n");
r = MsiSummaryInfoGetProperty(hsuminfo, PID_SECURITY+1, NULL, NULL, NULL, 0, NULL);
ok(r == ERROR_UNKNOWN_PROPERTY, "MsiSummaryInfoGetProperty wrong error\n");
}
type = -1;
r = MsiSummaryInfoGetProperty(hsuminfo, 0, &type, NULL, NULL, 0, NULL);
ok(r == ERROR_SUCCESS, "getpropcount failed\n");