From ae8c0ab55baa4ac1ba1a6283b209abb5b461d2fd Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 20 Apr 2005 14:24:30 +0000 Subject: [PATCH] Test MsiSummaryInfoGetProperty reading an empty property. --- dlls/msi/tests/suminfo.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlls/msi/tests/suminfo.c b/dlls/msi/tests/suminfo.c index e51dae00c4c..b0f81b0e739 100644 --- a/dlls/msi/tests/suminfo.c +++ b/dlls/msi/tests/suminfo.c @@ -67,8 +67,10 @@ START_TEST(suminfo) const char *msifile = "winetest.msi"; MSIHANDLE hdb = 0, hsuminfo; UINT r, count, type; + DWORD dwcount; INT val; FILETIME ft; + char buf[0x10]; DeleteFile(msifile); @@ -108,6 +110,15 @@ START_TEST(suminfo) ok(type == 0, "wrong type\n"); ok(val == 1234, "wrong val\n"); + buf[0]='x'; + buf[1]=0; + dwcount = 0x10; + r = MsiSummaryInfoGetProperty(hsuminfo, PID_REVNUMBER, &type, &val, NULL, buf, &dwcount); + ok(r == ERROR_SUCCESS, "getpropcount failed\n"); + ok(buf[0]=='x', "cleared buffer\n"); + ok(dwcount == 0x10, "count wasn't zero\n"); + ok(type == VT_EMPTY, "should be empty\n"); + r = MsiSummaryInfoSetProperty(hsuminfo, PID_TITLE, VT_LPSTR, 0, NULL, "Mike"); ok(r == ERROR_FUNCTION_FAILED, "MsiSummaryInfoSetProperty wrong error\n"); -- 2.11.4.GIT