From b9ea25721bd0b5166a944673067f8f2c8a122917 Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Mon, 4 Jun 2007 09:25:37 -0500 Subject: [PATCH] msi/tests: suminfo: Add tests for MsiSummaryInfoGetProperty for unknown property values. --- dlls/msi/tests/suminfo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/msi/tests/suminfo.c b/dlls/msi/tests/suminfo.c index 3bcc125ea9b..fbd508178e0 100644 --- a/dlls/msi/tests/suminfo.c +++ b/dlls/msi/tests/suminfo.c @@ -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");