Commit ae8c0ab5 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Test MsiSummaryInfoGetProperty reading an empty property.

parent 7932d76a
...@@ -67,8 +67,10 @@ START_TEST(suminfo) ...@@ -67,8 +67,10 @@ START_TEST(suminfo)
const char *msifile = "winetest.msi"; const char *msifile = "winetest.msi";
MSIHANDLE hdb = 0, hsuminfo; MSIHANDLE hdb = 0, hsuminfo;
UINT r, count, type; UINT r, count, type;
DWORD dwcount;
INT val; INT val;
FILETIME ft; FILETIME ft;
char buf[0x10];
DeleteFile(msifile); DeleteFile(msifile);
...@@ -108,6 +110,15 @@ START_TEST(suminfo) ...@@ -108,6 +110,15 @@ START_TEST(suminfo)
ok(type == 0, "wrong type\n"); ok(type == 0, "wrong type\n");
ok(val == 1234, "wrong val\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"); r = MsiSummaryInfoSetProperty(hsuminfo, PID_TITLE, VT_LPSTR, 0, NULL, "Mike");
ok(r == ERROR_FUNCTION_FAILED, "MsiSummaryInfoSetProperty wrong error\n"); ok(r == ERROR_FUNCTION_FAILED, "MsiSummaryInfoSetProperty wrong error\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment