Commit f211bd0a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msi/tests: Use wide-char string literals.

parent 58426ab3
......@@ -518,12 +518,10 @@ static void test_db(MSIHANDLE hinst)
for (i = 0; i < 20; i++)
{
WCHAR emptyW[1] = { 0 };
r = MsiSummaryInfoSetPropertyA(suminfo, i, prop_type[i], 1252, &ft, "");
ok(hinst, r == ERROR_FUNCTION_FAILED, "%u: got %u\n", i, r);
r = MsiSummaryInfoSetPropertyW(suminfo, i, prop_type[i], 1252, &ft, emptyW);
r = MsiSummaryInfoSetPropertyW(suminfo, i, prop_type[i], 1252, &ft, L"");
ok(hinst, r == ERROR_FUNCTION_FAILED, "%u: got %u\n", i, r);
}
......
......@@ -56,7 +56,6 @@ static void test_msirecord(void)
char buf[10];
WCHAR bufW[10];
const char str[] = "hello";
const WCHAR strW[] = { 'h','e','l','l','o',0};
char filename[MAX_PATH];
/* check behaviour with an invalid record */
......@@ -210,7 +209,7 @@ static void test_msirecord(void)
r = MsiRecordGetStringW(h,0,bufW,&sz);
ok(r == ERROR_MORE_DATA, "wrong error\n");
ok(sz == 5, "MsiRecordGetStringA returned the wrong length\n");
ok(0==memcmp(bufW,strW,8), "MsiRecordGetStringA returned the wrong string\n");
ok(!memcmp(bufW, L"hello", 8), "MsiRecordGetStringA returned the wrong string\n");
sz = 0;
bufW[0] = 'x';
......
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